altered tesst after updaing watir on loordv01, watir is now more strict when it comes to finding tags, you can't say,"find a text_field" and it will find the radio button version for you.
#Test we can logon to the system using the webmip administrator user<65>s login credentials and check that
#Test we can logon to the system using the webmip administrator user<65>s login credentials and check that
#all the columns required for the report appears with the button to create a new drawings record
#
deftest_01_drawing_screen_appears
@@ -65,7 +65,7 @@ class Test_04_drawings_screen < Test::Unit::TestCase
#
deftest_04_update_drawing
@@ie.link(:text,'D1').click
assert(@@ie.text_field(:id,'P53_CODE').verify_contains('D1'),'The drawing code field did not contain value D1')
assert(@@ie.contains_text('D1'),'The drawing code field did not contain value D1')
assert(@@ie.text_field(:id,'P53_DESCRIPTION').verify_contains('Drawing for housing'),'The drawing description field did not contain value Drawing for housing')
assert(@@ie.button(:id,'cancel').exists?,'The cancel button was not available')
assert(@@ie.button(:id,'delete').exists?,'The delete button was not available')
assert_equal(listofcontactmech,@@ie.select_list(:id,'P32_ASSET_LOCATION_NOTES').getAllContents,'The expected list of asset location delivery mechanisms was not found')
assert(@@ie.text_field(:id,'P32_UPLOAD_ASSET_LOCATION_NOTES').exists?,'Could not find P32_UPLOAD_ASSET_LOCATION_NOTES field')
assert(@@ie.file_field(:id,'P32_UPLOAD_ASSET_LOCATION_NOTES').exists?,'Could not find P32_UPLOAD_ASSET_LOCATION_NOTES file_field')
end
#
#Check that the contacts address appears if you select no (the contact
@@ -311,7 +311,7 @@ class Test_02_enquiry < Test::Unit::TestCase
assert(@@ie.select_list(:id,'P32_MARKET_SECTOR_CODE').exists?,'Could not find P32_MARKET_SECTOR_CODE select list')
assert(@@ie.text_field(:id,'P32_OTHER_INFORMATION').exists?,'Could not find P32_OTHER_INFORMATION field')
@@ -111,7 +111,7 @@ class Test_03_housings_screen < Test::Unit::TestCase
@@ie.link(:text,'1766H').click
@@ie.wait
assert(@@ie.contains_text('Create/Edit Housings'),'The Create/Edit Housings screen did not appear')
assert(@@ie.text_field(:id,'P55_CODE').verify_contains('1766H'),'The housing code field did not contain value 1765H')
assert(@@ie.contains_text('1766H'),'The housing code field did not contain value 1765H')
#assert_equal(@@ie.select_list(:id, 'P55_HOTY_CODE').getAllContents, ['Lift Off', 'Unknown Housing Type - inserted for bulk load', 'Walk In', 'Walk Through'], 'Not all values found in Housing type Select list')
assert(@@ie.select_list(:id,'P55_HOTY_CODE').selected?('Lift Off'),'The housing type is not LIFT OFF')
assert(@@ie.text_field(:id,'P55_DESCRIPTION').verify_contains('Housing for meters'),'The description is not housing for meters')
@@ -76,7 +76,7 @@ class Test_09_MIPADMIN_party_management< Test::Unit::TestCase
assert(@@ie.text_field(:id,'P61_COMMENTS').exists?,'Could not find P61_COMMENTS field')
assert(@@ie.text_field(:id,'P61_PASSWORD').exists?,'Could not find P61_PASSWORD file upload field')
assert(@@ie.text_field(:id,'P61_REPEAT_PASSWORD').exists?,'Could not find P61_REPEAT_PASSWORD file upload field')
assert(@@ie.checkbox(:id,'P61_EXPIRE_PWORD').exists?,'Could not find P61_EXPIRE_PWORD checkbox')
assert(@@ie.radio(:id,'P61_EXPIRE_PWORD').exists?,'Could not find P61_EXPIRE_PWORD radio buttons')
#Test the objects on P62
@@ie.goto(ASSIGN_PARTY_ROLE)
@@ -556,7 +556,8 @@ class Test_11_edit_parties< Test::Unit::TestCase
@@ie.link(:name,'Edit Current User').click
assert(@@ie.button(:value,'Cancel').exists?,'Could not find Cancel button(user fields)')
assert(@@ie.button(:value,'Apply Changes').exists?,'Could not find Apply Changes button')
assert(@@ie.select_list(:id,'P66_STATUS').exists?,'Could not find P66_STATUS select list')
#Status is a display only field
#assert(@@ie.select_list(:id,'P66_STATUS').exists?,'Could not find P66_STATUS select list')
assert(@@ie.text_field(:id,'P66_FIRST_NAME').exists?,'Could not find P66_FIRST_NAME field')
assert(@@ie.text_field(:id,'P66_LAST_NAME').exists?,'Could not find P66_LAST_NAME field')
assert(@@ie.text_field(:id,'P66_PERSONAL_TITLE').exists?,'Could not find P66_PERSONAL_TITLE field')
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.