Initial set of enquiry tests, will need to test that enquiry can be saved, updated and that the request for quote, manual quote and upload file processes work also
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3451 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
708
tests/enquirytests.rb
Normal file
708
tests/enquirytests.rb
Normal file
@@ -0,0 +1,708 @@
|
||||
#---
|
||||
#This unit test checks the enquiry screen, we check things like security, that things appear
|
||||
#and disapear on the screen correctly and all the fields are available etc.
|
||||
#---
|
||||
class Test_02_enquiry < Test::Unit::TestCase
|
||||
@@enquirytypes=["-Please select a value-",
|
||||
"Adversarial removal of a meter",
|
||||
"Alteration (relocation or reposition) of an existing meter",
|
||||
"Change of capacity",
|
||||
"Exchange of a Standard meter",
|
||||
"Exchange of non-Standard meter",
|
||||
"Installation of new Standard meter",
|
||||
"Installation of new non-Standard meter",
|
||||
"Other",
|
||||
"Purchase of standard add-ons for an existing meter module",
|
||||
"Removal of a Standard meter",
|
||||
"Removal of non-Standard meter",
|
||||
"Request for OFGEM Meter Accuracy Test (OFMAT)"]
|
||||
#
|
||||
#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
|
||||
@@ie.goto(ENQUIRY)
|
||||
login(DEFAULT, DEFAULT_PWD)
|
||||
assert(@@ie.contains_text('Enquiry'),'The data export screen did not appear')
|
||||
#check the regions appear
|
||||
assert(@@ie.contains_text('Site Detail'),'Site Detail region not found')
|
||||
assert(@@ie.contains_text('Site Address'),'The Site Address region not found')
|
||||
assert(@@ie.contains_text('Contact Details'),'The Contact Details region not found')
|
||||
assert(@@ie.contains_text('Job Info'),'The Job Info region not found')
|
||||
#check we've got the save and cancel buttons but not apply changes
|
||||
assert(@@ie.button(:value, 'Save').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert_not_equal(@@ie.button(:value, 'Apply Changes').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert(@@ie.text_field(:id,'P32_ID').exists?,'Could not find P32_ID field')
|
||||
assert(@@ie.select_list(:id,'P32_MKTP_REF').exists?,'Could not find P32_MKTP_REF select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_MKTP_REF2').exists?,'Found P32_MKTP_REF2 field')
|
||||
assert(@@ie.select_list(:id,'P32_ALTY_CODE').exists?,'Could not find P32_ALTY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_CACA_CODE').exists?,'Could not find P32_CACA_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_ASSET_LOCATION_NOTES').exists?,'Could not find P32_ASSET_LOCATION_NOTES select list')
|
||||
assert(@@ie.text_field(:id,'P32_ACCESS_PASSWORD').exists?,'Could not find P32_ACCESS_PASSWORD field')
|
||||
assert(@@ie.text_field(:id,'P32_ACCESS_ADDITIONAL').exists?,'Could not find P32_ACCESS_ADDITIONAL field')
|
||||
assert(@@ie.text_field(:id,'P32_MPRN').exists?,'Could not find P32_MPRN field')
|
||||
assert(@@ie.text_field(:id,'P32_MPRN_ALT').exists?,'Could not find P32_MPRN_ALT field')
|
||||
assert(@@ie.text_field(:id,'P32_TRANSACTION_REFERENCE').exists?,'Could not find P32_TRANSACTION_REFERENCE field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_SUB_BUILDING').exists?,'Could not find P32_INSTALL_SUB_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_BUILDING').exists?,'Could not find P32_INSTALL_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_STREET').exists?,'Could not find P32_INSTALL_STREET field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_CITY').exists?,'Could not find P32_INSTALL_CITY field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_POSTCODE').exists?,'Could not find P32_INSTALL_POSTCODE field')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_CONTACT_NAME').exists?,'Could not find P32_FIRST_CONTACT_NAME field')
|
||||
assert(@@ie.select_list(:id,'P32_INSTALL_ADDRESS').exists?,'Could not find P32_INSTALL_ADDRESS select list')
|
||||
assert(@@ie.select_list(:id,'P32_SECOND_CONTACT').exists?,'Could not find P32_SECOND_CONTACT select list')
|
||||
assert(@@ie.select_list(:id,'P32_ENTY_CODE').exists?,'Could not find P32_ENTY_CODE select list')
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id,'P32_ENTY_CODE').getAllContents,'List of options for P32_ENTY_CODE did not match what was expected')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert(@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Could not find P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
#
|
||||
#Ensure that the screen refreshes and displays the agents drop down list
|
||||
#when we choose a supplier
|
||||
#
|
||||
def test_02_check_agent_appears_when_supplier_selected
|
||||
listofagents=["-Please select a value-","Fred Smith","Joe Bloggs"]
|
||||
@@ie.select_list(:id,'P32_MKTP_REF').set "Northern Supplies"
|
||||
@@ie.wait
|
||||
assert(@@ie.select_list(:id,'P32_AGENT_ID').exists?,'Could not find P32_AGENT_ID select list')
|
||||
assert_equal(listofagents,@@ie.select_list(:id, 'P32_AGENT_ID').getAllContents ,'The expected list of agents was not found')
|
||||
end
|
||||
#
|
||||
#Ensure that the screen refreshes and displays the agents contact mechanism drop down list
|
||||
#when we choose an agent
|
||||
#
|
||||
def test_03_check_contact_mechs_appear_when_agent_selected
|
||||
listofcontactmech=["-Please select a value-","Email","Fax","Mobile","Telephone"]
|
||||
@@ie.select_list(:id,'P32_AGENT_ID').set "Fred Smith"
|
||||
@@ie.wait
|
||||
assert(@@ie.select_list(:id,'P32_AGENT_COMT_CODE').exists?,'Could not find P32_AGENT_COMT_CODE(agent contact mechanisms) select list')
|
||||
assert_equal(listofcontactmech,@@ie.select_list(:id, 'P32_AGENT_COMT_CODE').getAllContents ,'The expected list of contact mechanisms was not found')
|
||||
end
|
||||
#
|
||||
#Check that the contact value is displayed when the mechanism is selected
|
||||
#
|
||||
def test_04_check_contact_mech_value_appears_when_mechanism_selected
|
||||
@@ie.select_list(:id,'P32_AGENT_COMT_CODE').set "Email"
|
||||
@@ie.wait
|
||||
assert(@@ie.text_field(:id,'P32_AGENT_CONTACT_VALUE').exists?,'Could not find P32_AGENT_CONTACT_VALUE field')
|
||||
end
|
||||
#
|
||||
#Check that the file upload is displayed when the mechanism
|
||||
#for delivering asset location notes is selected
|
||||
#
|
||||
def test_05_check_file_upload_appears_when_asset_location_mechanism_selected
|
||||
listofcontactmech=["-Please select a value-","Post","Fax","Email","Upload"]
|
||||
@@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')
|
||||
end
|
||||
#
|
||||
#Check that the contacts address appears if you select no (the contact
|
||||
#address is not the same as the site address)
|
||||
#
|
||||
def test_06_check_contact_address_fields_appear_when_no_is_selected
|
||||
listofoptions=["Yes","No"]
|
||||
@@ie.select_list(:id,'P32_INSTALL_ADDRESS').set "No"
|
||||
@@ie.wait
|
||||
assert_equal(listofoptions,@@ie.select_list(:id, 'P32_INSTALL_ADDRESS').getAllContents ,'The expected yes/no list for address same as site was not found')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_CONTACT_NAME').exists?,'Could not find P32_FIRST_CONTACT_NAME field')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_ALT_SUB_BUILDING').exists?,'Could not find P32_FIRST_ALT_SUB_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_ALT_BUILDING').exists?,'Could not find P32_FIRST_ALT_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_ALT_STREET').exists?,'Could not find P32_FIRST_ALT_STREET field')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_ALT_CITY').exists?,'Could not find P32_FIRST_ALT_CITY field')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_ALT_POSTCODE').exists?,'Could not find P32_FIRST_ALT_POSTCODE field')
|
||||
end
|
||||
#
|
||||
#Check that the 2nd contacts address appears if you select yes (there
|
||||
# is a second contact address)
|
||||
#
|
||||
def test_07_check_second_contact_address_fields_appear_when_no_is_selected
|
||||
listofoptions=["Yes","No"]
|
||||
@@ie.select_list(:id,'P32_SECOND_CONTACT').set "Yes"
|
||||
@@ie.wait
|
||||
assert_equal(listofoptions,@@ie.select_list(:id, 'P32_SECOND_CONTACT').getAllContents ,'The expected yes/no list for 2nd contact was not found')
|
||||
assert(@@ie.text_field(:id,'P32_SECOND_CONTACT_NAME').exists?,'Could not find P32_SECOND_CONTACT_NAME field')
|
||||
assert(@@ie.text_field(:id,'P32_SECOND_ALT_SUB_BUILDING').exists?,'Could not find P32_SECOND_ALT_SUB_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_SECOND_ALT_BUILDING').exists?,'Could not find P32_SECOND_ALT_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_SECOND_ALT_STREET').exists?,'Could not find P32_SECOND_ALT_STREET field')
|
||||
assert(@@ie.text_field(:id,'P32_SECOND_ALT_CITY').exists?,'Could not find P32_SECOND_ALT_CITY field')
|
||||
assert(@@ie.text_field(:id,'P32_SECOND_ALT_POSTCODE').exists?,'Could not find P32_SECOND_ALT_POSTCODE field')
|
||||
end
|
||||
#
|
||||
#Check all the correct fields are displayed when a non standard install job is selected
|
||||
#Note: AMR should not be visible as none of the data load parties is set to be
|
||||
#a tripartite member
|
||||
#
|
||||
def test_08_install_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[7]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Found P32_METY_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Found P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Found P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Found P32_EXISTING_METER_MODEL 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_equal(false,@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Found P32_EXISTING_LOGGER select list')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Found P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
#
|
||||
#Check all the correct fields are displayed when a standard job is selected
|
||||
#Note: AMR should not be visible as none of the data load parties is set to be
|
||||
#a tripartite member
|
||||
def test_09_std_install_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[6]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Could not find P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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_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')
|
||||
end
|
||||
def test_10_ofmat_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[12]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_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_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Found P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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_equal(false,@@ie.text_field(:id,'P32_EXISTING_LOGGER').exists?,'Found P32_EXISTING_LOGGER select list')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_EXISTING_CONVERTOR').exists?,'Found P32_EXISTING_CONVERTOR select list')
|
||||
end
|
||||
def test_11_exchange_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[5]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_EXISTING_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_12_std_exchange_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[4]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert(@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Could not find P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_EXISTING_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_13_remove_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[11]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Found P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Found P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_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(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Found P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_14_std_remove_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[10]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Found P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Found P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_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(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Found P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_15_adversarial_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[1]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert_equal(false,@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Found P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Found P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_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(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Found P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_16_alteration_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[2]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_EXISTING_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_17_capacity_change_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[3]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert(@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Could not find P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_EXISTING_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_18_addon_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[9]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_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(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Found P32_TWIN_STREAM_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')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Found P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_EXISTING_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_19_other_selected_check_fields_appear_available
|
||||
@@ie.select_list(:id,'P32_ENTY_CODE').set @@enquirytypes[9]
|
||||
@@ie.wait
|
||||
assert_equal(@@enquirytypes,@@ie.select_list(:id, 'P32_ENTY_CODE').getAllContents ,'The expected list for job type was not found')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_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(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Found P32_TWIN_STREAM_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')
|
||||
assert(@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Could not find P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_EXISTING_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_EXISTING_SVCP_CODE').exists?,'Found P32_EXISTING_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
def test_20_logout_and_then_in_as_agent_check_enquiry_displays_correctly
|
||||
menu('Logout')
|
||||
assert(@@ie.button(:value, 'Login').exists?,'The Login button was not available')
|
||||
@@ie.button(:value, 'Login').click
|
||||
@@ie.wait
|
||||
#check we've got the login page
|
||||
assert(@@ie.text_field(:id,'P101_USERNAME').exists?,'Could not find P101_USERNAME field')
|
||||
assert(@@ie.text_field(:id,'P101_PASSWORD').exists?,'Could not find P101_PASSWORD field')
|
||||
assert(@@ie.button(:id, 'login').exists?,'Could not find a Login button')
|
||||
login(AGENT, AGENT_PWD)
|
||||
menu('Enquiries')
|
||||
menu('Create Enquiry')
|
||||
assert(@@ie.contains_text('Enquiry'),'The Enquiry screen did not appear')
|
||||
#check the regions appear
|
||||
assert(@@ie.contains_text('Site Detail'),'Site Detail region not found')
|
||||
assert(@@ie.contains_text('Site Address'),'The Site Address region not found')
|
||||
assert(@@ie.contains_text('Contact Details'),'The Contact Details region not found')
|
||||
assert(@@ie.contains_text('Job Info'),'The Job Info region not found')
|
||||
#check we've got the save and cancel buttons but not apply changes
|
||||
assert(@@ie.button(:value, 'Save').exists?,'Could not find a Save button')
|
||||
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||
assert_not_equal(@@ie.button(:value, 'Apply Changes').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
#make sure that the ID field is not accessable (a form object)
|
||||
#assert_not_equal(@@ie.text_field(:name, 'P32_ID').exists?,true,'Found Apply Changes button when it should have been hidden')
|
||||
assert(@@ie.text_field(:id,'P32_ID').exists?,'Could not find P32_ID field')
|
||||
assert(@@ie.select_list(:id,'P32_MKTP_REF2').exists?,'Could not find P32_MKTP_REF2 field')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_MKTP_REF').exists?,'Found P32_MKTP_REF field')
|
||||
assert(@@ie.select_list(:id,'P32_ALTY_CODE').exists?,'Could not find P32_ALTY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_CACA_CODE').exists?,'Could not find P32_CACA_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_ASSET_LOCATION_NOTES').exists?,'Could not find P32_ASSET_LOCATION_NOTES select list')
|
||||
assert(@@ie.text_field(:id,'P32_ACCESS_PASSWORD').exists?,'Could not find P32_ACCESS_PASSWORD field')
|
||||
assert(@@ie.text_field(:id,'P32_ACCESS_ADDITIONAL').exists?,'Could not find P32_ACCESS_ADDITIONAL field')
|
||||
assert(@@ie.text_field(:id,'P32_MPRN').exists?,'Could not find P32_MPRN field')
|
||||
assert(@@ie.text_field(:id,'P32_MPRN_ALT').exists?,'Could not find P32_MPRN_ALT field')
|
||||
assert(@@ie.text_field(:id,'P32_TRANSACTION_REFERENCE').exists?,'Could not find P32_TRANSACTION_REFERENCE field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_SUB_BUILDING').exists?,'Could not find P32_INSTALL_SUB_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_BUILDING').exists?,'Could not find P32_INSTALL_BUILDING field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_STREET').exists?,'Could not find P32_INSTALL_STREET field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_CITY').exists?,'Could not find P32_INSTALL_CITY field')
|
||||
assert(@@ie.text_field(:id,'P32_INSTALL_POSTCODE').exists?,'Could not find P32_INSTALL_POSTCODE field')
|
||||
assert(@@ie.text_field(:id,'P32_FIRST_CONTACT_NAME').exists?,'Could not find P32_FIRST_CONTACT_NAME field')
|
||||
assert(@@ie.select_list(:id,'P32_INSTALL_ADDRESS').exists?,'Could not find P32_INSTALL_ADDRESS select list')
|
||||
assert(@@ie.select_list(:id,'P32_SECOND_CONTACT').exists?,'Could not find P32_SECOND_CONTACT select list')
|
||||
assert(@@ie.select_list(:id,'P32_ENTY_CODE').exists?,'Could not find P32_ENTY_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_OWNER').exists?,'Could not find P32_EXISTING_METER_OWNER field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_ASSET_PROVIDER').exists?,'Could not find P32_EXISTING_METER_ASSET_PROVIDER field')
|
||||
assert(@@ie.select_list(:id,'P32_INDICATIVE_TIME').exists?,'Could not find P32_INDICATIVE_TIME select list')
|
||||
assert(@@ie.select_list(:id,'P32_REQUIRED_SVCP_CODE').exists?,'Could not find P32_REQUIRED_SVCP_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_ANNUAL_QUANTITY').exists?,'Could not find P32_ANNUAL_QUANTITY field')
|
||||
assert(@@ie.text_field(:id,'P32_REQUIRED_METERING_PRESSURE').exists?,'Could not find P32_REQUIRED_METERING_PRESSURE field')
|
||||
assert(@@ie.select_list(:id,'P32_DOWNSTREAM_BOOSTER_OR_COMPRESS').exists?,'Could not find P32_DOWNSTREAM_BOOSTER_OR_COMPRESS 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_HOUSING_REQUIRED').exists?,'Could not find P32_HOUSING_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BASE_REQUIRED').exists?,'Could not find P32_BASE_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_CONVERTOR_REQUIRED').exists?,'Could not find P32_CONVERTOR_REQUIRED select list')
|
||||
assert_equal(false,@@ie.select_list(:id,'P32_AMR_REQUIRED').exists?,'Found P32_AMR_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_EMS_REQUIRED').exists?,'Could not find P32_EMS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_BYPASS_REQUIRED').exists?,'Could not find P32_BYPASS_REQUIRED select list')
|
||||
assert(@@ie.select_list(:id,'P32_LOAD_CONTROL_TYPE').exists?,'Could not find P32_LOAD_CONTROL_TYPE select list')
|
||||
assert(@@ie.select_list(:id,'P32_TWIN_STREAM_REQUIRED').exists?,'Could not find P32_TWIN_STREAM_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')
|
||||
assert(@@ie.select_list(:id,'P32_METER_SIZE').exists?,'Could not find P32_METER_SIZE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_METY_CODE').exists?,'Could not find P32_METY_CODE select list')
|
||||
assert(@@ie.select_list(:id,'P32_EXISTING_MESC_CODE').exists?,'Could not find P32_EXISTING_MESC_CODE select list')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_SERIAL_NO').exists?,'Could not find P32_EXISTING_METER_SERIAL_NO field')
|
||||
assert(@@ie.text_field(:id,'P32_EXISTING_METER_MODEL').exists?,'Could not find P32_EXISTING_METER_MODEL 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')
|
||||
end
|
||||
#
|
||||
# Check that the customer service user does not have access to create an enquiry from the
|
||||
# menu.
|
||||
def test_21_logout_and_then_in_as_Customer_Services_check_create_agent_displays_correctly
|
||||
menu('Logout')
|
||||
assert(@@ie.button(:value, 'Login').exists?,'The Login button was not available')
|
||||
@@ie.button(:value, 'Login').click
|
||||
@@ie.wait
|
||||
#check we've got the login page
|
||||
assert(@@ie.text_field(:id,'P101_USERNAME').exists?,'Could not find P101_USERNAME field')
|
||||
assert(@@ie.text_field(:id,'P101_PASSWORD').exists?,'Could not find P101_PASSWORD field')
|
||||
assert(@@ie.button(:id, 'login').exists?,'Could not find a Login button')
|
||||
login(CS, CS_PWD)
|
||||
menu('Enquiries')
|
||||
assert_nil(@@ie.contains_text('Create Enquiry'),'Create Enquiry menu option found when should have been hidden')
|
||||
end
|
||||
#
|
||||
#Supplier admin should be unable to create an enquiry via the menu.
|
||||
#
|
||||
def test_22_logout_and_then_in_as supplier_admin
|
||||
menu('Logout')
|
||||
assert(@@ie.button(:value, 'Login').exists?,'The Login button was not available')
|
||||
@@ie.button(:value, 'Login').click
|
||||
@@ie.wait
|
||||
#check we've got the login page
|
||||
assert(@@ie.text_field(:id,'P101_USERNAME').exists?,'Could not find P101_USERNAME field')
|
||||
assert(@@ie.text_field(:id,'P101_PASSWORD').exists?,'Could not find P101_PASSWORD field')
|
||||
assert(@@ie.button(:id, 'login').exists?,'Could not find a Login button')
|
||||
login(SA, SA_PWD)
|
||||
menu('Enquiries')
|
||||
assert_nil(@@ie.contains_text('Create Enquiry'),'Create Enquiry menu option found when should have been hidden')
|
||||
end
|
||||
#Check asterisk on correct fields
|
||||
#Create a new enquiry
|
||||
#Amend an existing enquiry
|
||||
#Is dash doing this?Copy an existing enquiry to a new enquiry
|
||||
#Enquiry State (for different job types)
|
||||
#Tripartite agreement(need to get data)
|
||||
#Test Manual quote, request for quote and upload file buttons
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user