There's no flag in watir to swallow all exceptions, that's rather
dangerous behavior and not recommended. You could wrap methods with
begin/rescue blocks and print out the exceptions as they occur - follow
Zeljko's example above and the more specific the exceptions you catch the
better.

 I'd agree, it's not slick or pretty but it's the nature of the way test
unit is designed and my understanding of how these specific tests are coded
and the requirements. I reserve the right to be wrong on both accounts. :)
The way test unit and assertions work is more on a unit => single assertion
aspect vs grouping multiple assertion points(test cases) into one larger
grouping.

 For better or worse, I've ignored the issue to some extent as the
assertion points fold up into a larger test case, which I'm assuming passes
if all individual test points pass, and dump out of the test case with a
message on any individual assertion instead of bending it all around to a
functional pass through with multiple assertions that are all independent. I
added the ability track assertions in the test unit reports we're running
just to identify the running assertions. Otherwise, I'm basically using test
unit as is with it's limitations for true functional test scenarios.

-c

On 4/11/07, Vamsee Krishna M <[EMAIL PROTECTED]> wrote:

I think what he meant was he wants to execute each and every statement
without considering whether the previous statement was failed.

So the solution would be like putting try rescue catch block around around
each line and code won't look professional.

Is there any flag in watir that can be used to suppress all the exceptions
?
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to