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:
@@ -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, 'cancel').exists?,'The cancel button was not available')
|
||||||
assert(@@ie.button(:id, 'delete').exists?,'The delete 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')
|
assert(@@ie.button(:id, 'apply_changes').exists?,'The Apply Changes button was not available')
|
||||||
@@ie.text_field(:id, 'P24_CODE').set("ADDON3")
|
assert(@@ie.hidden(:id, 'P24_CODE').exits?,'The CODE field was not hidden')
|
||||||
@@ie.button(:id, 'apply_changes').click
|
|
||||||
@@ie.wait
|
|
||||||
assert(@@ie.contains_text('Create/Edit Additional Item'),'The additional item screen did not appear')
|
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')
|
assert(@@ie.contains_text('ADDON3'),'The record with additional item code ADDON3 did not appear')
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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('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_nil(@@ie.contains_text('WI'),'The new record with drawing code WI did appear')
|
||||||
assert(@@ie.contains_text('Error'),'An error was not generated')
|
assert(@@ie.contains_text('Error'),'An error was not generated')
|
||||||
|
sleep 3
|
||||||
@@ie.link(:text, 'OK').click
|
@@ie.link(:text, 'OK').click
|
||||||
@@ie.wait
|
@@ie.wait
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -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, 'cancel').exists?,'The cancel button was not available')
|
||||||
assert(@@ie.button(:id, 'delete').exists?,'The delete 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')
|
assert(@@ie.button(:id, 'apply_changes').exists?,'The Apply Changes button was not available')
|
||||||
@@ie.text_field(:id, 'P53_CODE').set("D2")
|
assert(@@ie.hidden(:id, 'P53_CODE').exists?,'The CODE field is not read only when it should be')
|
||||||
@@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
|
|
||||||
@@ie.button(:id, 'cancel').click
|
@@ie.button(:id, 'cancel').click
|
||||||
@@ie.wait
|
@@ie.wait
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ class Test_03_housings_screen < Test::Unit::TestCase
|
|||||||
@@ie.wait
|
@@ie.wait
|
||||||
assert(@@ie.contains_text('Housings'),'The housing screen did not appear')
|
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('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('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('3600'),'The value 3600 for Dimension L did not appear')
|
||||||
assert(@@ie.contains_text('1700'),'The value 1700 for Dimension W did not appear')
|
assert(@@ie.contains_text('1700'),'The value 1700 for Dimension W did not appear')
|
||||||
|
|||||||
@@ -36,10 +36,10 @@ include Watir
|
|||||||
#
|
#
|
||||||
#Get our individual integration tests
|
#Get our individual integration tests
|
||||||
#
|
#
|
||||||
require 'exportdatatests'
|
#require 'exportdatatests'
|
||||||
require 'enquirytests'
|
#require 'enquirytests'
|
||||||
require 'housingtests'
|
#require 'housingtests'
|
||||||
require 'basestests'
|
require 'basestests'
|
||||||
require 'drawingtests.rb'
|
#require 'drawingtests.rb'
|
||||||
#@@ie.wait
|
#@@ie.wait
|
||||||
#@@ie.close
|
#@@ie.close
|
||||||
Reference in New Issue
Block a user