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
This commit is contained in:
hardya
2008-02-27 16:26:08 +00:00
parent 071197b292
commit 245a4adc53

View File

@@ -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<65>s login credentials
#Test we can logon to the system using the webmip administrator user<65>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))