update for fixes after some changes to screens

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3802 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
PriestJ
2008-03-03 10:54:46 +00:00
parent 6f7f877327
commit 5397b52dc4
5 changed files with 8 additions and 15 deletions

View File

@@ -121,9 +121,7 @@ class Test_06_addon_screen < Test::Unit::TestCase
assert(@@ie.button(:id, 'cancel').exists?,'The cancel button was not available')
assert(@@ie.button(:id, 'delete').exists?,'The delete button was not available')
assert(@@ie.button(:id, 'apply_changes').exists?,'The Apply Changes button was not available')
@@ie.text_field(:id, 'P24_CODE').set("ADDON3")
@@ie.button(:id, 'apply_changes').click
@@ie.wait
assert(@@ie.hidden(:id, 'P24_CODE').exits?,'The CODE field was not hidden')
assert(@@ie.contains_text('Create/Edit Additional Item'),'The additional item screen did not appear')
assert(@@ie.contains_text('ADDON3'),'The record with additional item code ADDON3 did not appear')
end

View File

@@ -295,6 +295,7 @@ class Test_05_base_screen < Test::Unit::TestCase
assert_nil(@@ie.contains_text('2400'),'The value 2400 for Dim I did appear')
assert_nil(@@ie.contains_text('WI'),'The new record with drawing code WI did appear')
assert(@@ie.contains_text('Error'),'An error was not generated')
sleep 3
@@ie.link(:text, 'OK').click
@@ie.wait
end

View File

@@ -122,13 +122,7 @@ class Test_04_drawings_screen < Test::Unit::TestCase
assert(@@ie.button(:id, 'cancel').exists?,'The cancel button was not available')
assert(@@ie.button(:id, 'delete').exists?,'The delete button was not available')
assert(@@ie.button(:id, 'apply_changes').exists?,'The Apply Changes button was not available')
@@ie.text_field(:id, 'P53_CODE').set("D2")
@@ie.button(:id, 'apply_changes').click
@@ie.wait
assert(@@ie.contains_text('ORA-20001'),'We did not get that nasty ORA-20001 error we were expecting')
assert(@@ie.contains_text('DRAWINGS'),'Did not reference the DRAWINGS table in the error message')
@@ie.link(:text, 'OK').click
@@ie.wait
assert(@@ie.hidden(:id, 'P53_CODE').exists?,'The CODE field is not read only when it should be')
@@ie.button(:id, 'cancel').click
@@ie.wait
end

View File

@@ -94,7 +94,7 @@ class Test_03_housings_screen < Test::Unit::TestCase
@@ie.wait
assert(@@ie.contains_text('Housings'),'The housing screen did not appear')
assert(@@ie.contains_text('3811H'),'The new record with drawing code 3811H did not appear')
assert(@@ie.contains_text('WALK THRU'),'The new record with housing type walk through did not appear')
assert(@@ie.contains_text('Walk Thru'),'The new record with housing type walk through did not appear')
assert(@@ie.contains_text('Housing for regulators'),'The description Housing for regulators did not appear')
assert(@@ie.contains_text('3600'),'The value 3600 for Dimension L did not appear')
assert(@@ie.contains_text('1700'),'The value 1700 for Dimension W did not appear')

View File

@@ -36,10 +36,10 @@ include Watir
#
#Get our individual integration tests
#
require 'exportdatatests'
require 'enquirytests'
require 'housingtests'
#require 'exportdatatests'
#require 'enquirytests'
#require 'housingtests'
require 'basestests'
require 'drawingtests.rb'
#require 'drawingtests.rb'
#@@ie.wait
#@@ie.close