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))