On Wednesday, April 10, 2013 1:24:47 PM UTC-7, Duc Le wrote:
>
> I have been searching high and low for this but no where have I found it 
> yet. I'm trying to capture when a test run failed. I'm easily can do this 
> for Chrome since it looks to throw an exception when it failed. Firefox 
> does not seem to have the behavior. The code I have is something like the 
> following:
>
> begin
>     Rake::TestTask ...
> rescue => e
>     # Tests failed, do something
> else
>     # Tests passed, do something
> end
>

Seems strange that the test would fail without throwing an exception.  

asserts and .shoulds  throw exceptions when they fail
most watir steps throw exceptions if they cannot find an element, etc.

 Can you give an example of a test that does this?  how do you know the 
test failed? 

 

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to