From 245a4adc53e4afe51c77cedaa1fd5889b064d7fa Mon Sep 17 00:00:00 2001 From: hardya Date: Wed, 27 Feb 2008 16:26:08 +0000 Subject: [PATCH] Files are now uploaded from a secondary page (41). git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3735 248e525c-4dfb-0310-94bc-949c084e9493 --- tests/enquirytests.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/enquirytests.rb b/tests/enquirytests.rb index 462b1ae..d764d9c 100644 --- a/tests/enquirytests.rb +++ b/tests/enquirytests.rb @@ -18,7 +18,7 @@ class Test_02_enquiry < Test::Unit::TestCase "Request for OFGEM Meter Accuracy Test (OFMAT)"] @@savedenquiryid = '' # - #Test we can logon to the system using the webmip administrator user’s login credentials + #Test we can logon to the system using the webmip administrator user�s login credentials #and create a new enquiry screen # def test_01_enquiry_screen_appears @@ -811,10 +811,12 @@ class Test_02_enquiry < Test::Unit::TestCase @@ie.text_field(:id,'P32_OTHER_INFORMATION').set '' #@@ie.text_field(:id,'P32_EXISTING_LOGGER').set '' #@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').set '' + @@ie.button(:value, 'Upload File') + @@ie.wait #check fileupload via upload control on enquiry form #we know InstallMIP.cmd is around - @@ie.file_field(:id, 'P32_ENQUIRY_FILES').set(WORKINGDIR+'\\InstallMIP.cmd') - @@ie.button(:value, 'Apply Changes').click + @@ie.file_field(:id, 'P41_FILE_UPLOAD').set(WORKINGDIR+'\\InstallMIP.cmd') + @@ie.button(:value, 'Upload').click @@ie.wait assert_nil(@@ie.contains_text('Error'),'Error found >'+geterrormess(@@ie))