From 98c87b6f6dc8ad2c94f1012b51377d22e456450c Mon Sep 17 00:00:00 2001 From: PriestJ Date: Thu, 7 Aug 2008 10:16:00 +0000 Subject: [PATCH] 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 --- tests/enquirytests.rb | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/enquirytests.rb b/tests/enquirytests.rb index 823029d..57f9377 100644 --- a/tests/enquirytests.rb +++ b/tests/enquirytests.rb @@ -19,21 +19,21 @@ class Test_02_enquiry < Test::Unit::TestCase @@savedenquiryid = '' #Create a non-tripartite exclusion so we can test that the AMR option does not #appear -# def test_01_create_non_tripartite_exclusion -# @@ie.goto(TRIPARTITE) -# login(DEFAULT, DEFAULT_PWD) -# 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_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.button(:value, 'Create').exists?,'Could not find a Save 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_ADIT_CODE').set'Automatic Meter Reading' -# @@ie.button(:value, 'Create').click -# @@ie.wait -# assert(@@ie.contains_text('Exclusion saved.'),'Exclusion saved message not found') -# end + def test_01_create_non_tripartite_exclusion + @@ie.goto(TRIPARTITE) + login(DEFAULT, DEFAULT_PWD) + 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_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.button(:value, 'Create').exists?,'Could not find a Save 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_ADIT_CODE').set'Automatic Meter Reading' + @@ie.button(:value, 'Create').click + @@ie.wait + assert(@@ie.contains_text('Exclusion saved.'),'Exclusion saved message not found') + end # #Test we can logon to the system using the webmip administrator user�s login credentials #and create a new enquiry screen