Of course you can!
You can run the test step by step, add exception handle.
Such as the code below.
require 'watir'
require 'watir/testcase'
class Test1 <Watir::TestCase
def test_a
put "this is a failure"
end
def test_b
puts "This is a success"
end
end
class Test2 < Watir::TestCase
end
In fact, there is problem in function test_a, but it won't affect the
running of test_b
This is just an easy example.
When you put your test case 1 into function test_a, put your test case 2
into function test_b
when test case 1 fails, test case 2 will run without quite impacted.
When class Test1 fails, it also won't affect class Test2.
After all, you can run your automation as expected with Watir.
Expect it could help!
Thanks.
Wesley Chen.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---