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.
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@6165 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -35,7 +35,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.contains_text('Exclusion saved.'),'Exclusion saved message not found')
|
||||
end
|
||||
#
|
||||
#Test we can logon to the system using the webmip administrator user<EFBFBD>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_02_enquiry_screen_appears
|
||||
@@ -92,7 +92,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_HOUSING_REQUIRED').exists?,'Found P32_HOUSING_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Found P32_BASE_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Found P32_CONVERTOR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Could not find P32_AMR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'found P32_AMR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Found P32_EMS_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Found P32_BYPASS_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Found P32_LOAD_CONTROL_TYPE select list')
|
||||
@@ -149,7 +149,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
@@ie.select_list(:id,'P32_ASSET_LOCATION_NOTES').set "Upload"
|
||||
@@ie.wait
|
||||
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')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Found P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not Find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not Find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_12_exchange_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[5]
|
||||
@@ -346,8 +346,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_PRTY_ID').exists?,'Could not find P32_EXISTING_PRTY_ID field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_13_std_exchange_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[4]
|
||||
@@ -382,8 +382,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_14_remove_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[11]
|
||||
@@ -418,8 +418,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_15_std_remove_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[10]
|
||||
@@ -454,8 +454,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_16_adversarial_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[1]
|
||||
@@ -490,8 +490,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_17_alteration_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[2]
|
||||
@@ -526,8 +526,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_18_capacity_change_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[3]
|
||||
@@ -562,8 +562,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_19_addon_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[9]
|
||||
@@ -598,8 +598,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_20_other_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[8]
|
||||
@@ -634,8 +634,8 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METR_CODE').exists?,'Could not find P32_EXISTING_METR_CODE field')
|
||||
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')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_LOGGER').exists?,'Could not find P32_EXISTING_LOGGER select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_CONVERTOR').exists?,'Could not find P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_21_logout_and_then_in_as_agent_check_enquiry_displays_correctly
|
||||
menu('Logout')
|
||||
@@ -692,7 +692,7 @@ class Test_02_enquiry < Test::Unit::TestCase
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.text_field(:id,'P32_INDICATIVE_DATE').exists?,'Could not find P32_INDICATIVE_DATE field')
|
||||
assert(@@ie.text_field(:id,'P32_OTHER_PROJECT_REFERENCE').exists?,'Could not find P32_OTHER_PROJECT_REFERENCE field')
|
||||
assert(@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Could not find P32_AMR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.text_field(:id,'P32_JOB_DESCRIPTION').exists?,'Could not find P32_JOB_DESCRIPTION field')
|
||||
assert(@@ie.text_field(:id,'P32_QMAX').exists?,'Could not find P32_QMAX field')
|
||||
assert(@@ie.text_field(:id,'P32_QMIN').exists?,'Could not find P32_QMIN field')
|
||||
|
||||
Reference in New Issue
Block a user