updated enquiry tests to set the non-tripartite exclusion
git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@6152 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
@@ -19,21 +19,21 @@ class Test_02_enquiry < Test::Unit::TestCase
|
|||||||
@@savedenquiryid = ''
|
@@savedenquiryid = ''
|
||||||
#Create a non-tripartite exclusion so we can test that the AMR option does not
|
#Create a non-tripartite exclusion so we can test that the AMR option does not
|
||||||
#appear
|
#appear
|
||||||
# def test_01_create_non_tripartite_exclusion
|
def test_01_create_non_tripartite_exclusion
|
||||||
# @@ie.goto(TRIPARTITE)
|
@@ie.goto(TRIPARTITE)
|
||||||
# login(DEFAULT, DEFAULT_PWD)
|
login(DEFAULT, DEFAULT_PWD)
|
||||||
# assert(@@ie.contains_text('Non-Tripartite Exclusion'),'Non-Tripartite Exclusion screen not found')
|
assert(@@ie.contains_text('Non-Tripartite Exclusion'),'Non-Tripartite Exclusion screen not found')
|
||||||
# assert(@@ie.select_list(:id,'P90_ENTY_CODE').exists?,'Could not find P90_ENTY_CODE select list')
|
assert(@@ie.select_list(:id,'P90_ENTY_CODE').exists?,'Could not find P90_ENTY_CODE select list')
|
||||||
# assert(@@ie.select_list(:id,'P90_REGI_CODE').exists?,'Could not find P90_REGI_CODE select list')
|
assert(@@ie.select_list(:id,'P90_REGI_CODE').exists?,'Could not find P90_REGI_CODE select list')
|
||||||
# assert(@@ie.select_list(:id,'P90_ADIT_CODE').exists?,'Could not find P90_ADIT_CODE select list')
|
assert(@@ie.select_list(:id,'P90_ADIT_CODE').exists?,'Could not find P90_ADIT_CODE select list')
|
||||||
# assert(@@ie.button(:value, 'Create').exists?,'Could not find a Save button')
|
assert(@@ie.button(:value, 'Create').exists?,'Could not find a Save button')
|
||||||
# assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
assert(@@ie.button(:value, 'Cancel').exists?,'Could not find a Cancel button')
|
||||||
# @@ie.select_list(:id,'P90_REGI_CODE').set'East of England'
|
@@ie.select_list(:id,'P90_REGI_CODE').set'East of England'
|
||||||
# @@ie.select_list(:id,'P90_ADIT_CODE').set'Automatic Meter Reading'
|
@@ie.select_list(:id,'P90_ADIT_CODE').set'Automatic Meter Reading'
|
||||||
# @@ie.button(:value, 'Create').click
|
@@ie.button(:value, 'Create').click
|
||||||
# @@ie.wait
|
@@ie.wait
|
||||||
# assert(@@ie.contains_text('Exclusion saved.'),'Exclusion saved message not found')
|
assert(@@ie.contains_text('Exclusion saved.'),'Exclusion saved message not found')
|
||||||
# end
|
end
|
||||||
#
|
#
|
||||||
#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
|
#and create a new enquiry screen
|
||||||
|
|||||||
Reference in New Issue
Block a user