From e22d76565d3737f3bc0b32b45dfa261e25ee9687 Mon Sep 17 00:00:00 2001 From: PriestJ Date: Thu, 21 Feb 2008 11:37:55 +0000 Subject: [PATCH] added function to default methods that will grab the notification div, so that we can add it to the output on our pages git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3654 248e525c-4dfb-0310-94bc-949c084e9493 --- tests/default_methods.rb | 4 ++++ tests/enquirytests.rb | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/default_methods.rb b/tests/default_methods.rb index bf5bda2..79fa8c0 100644 --- a/tests/default_methods.rb +++ b/tests/default_methods.rb @@ -55,6 +55,10 @@ def menu (p_menuitem) @@ie.wait end +def geterrormess(ie) + return ie.div(:id,'colRight').to_s +end + # # SETCONTRACTVALUE diff --git a/tests/enquirytests.rb b/tests/enquirytests.rb index e0a7cf1..d78cb82 100644 --- a/tests/enquirytests.rb +++ b/tests/enquirytests.rb @@ -816,7 +816,8 @@ class Test_02_enquiry < Test::Unit::TestCase @@ie.file_field(:id, 'P32_ENQUIRY_FILES').set(WORKINGDIR+'\\InstallMIP.cmd') @@ie.button(:value, 'Apply Changes').click @@ie.wait - assert_nil(@@ie.contains_text('Error'),'Error found') + + assert_nil(@@ie.contains_text('Error'),'Error found >'+geterrormess(@@ie)) @@ie.button(:value, 'Request Quotation').click @@ie.wait assert_nil(@@ie.contains_text('Error'),'Error found')