as Charley said, watir does not exit, itself.
If you want to know if an exception occurred causing your program to exit,
you can check if the global exception variable, $! is set.
at_exit do
if $!
print "an exception occurred of type #{$!.class}"
end
end
or something along those lines.
On Wed, Apr 14, 2010 at 16:36, Charley Baker <[email protected]>wrote:
> Watir itself doesn't have an exit code, it's just a library. Are you
> talking about your own testing framework, rspec, test::unit? Those generally
> can set exit codes. My question is what are you trying to do? Set it up in a
> CI run? Something else entirely?
>
> -c
>
>
>
> On Wed, Apr 14, 2010 at 2:30 PM, Shlomit Gazit
> <[email protected]>wrote:
>
>> Is there a method to use watir exit code (0 or 1)?
>> I want to know that if it is 0 to do something at_exit.
>>
>> Thank you, Shlomit.
>>
>> --
>> Before posting, please read http://watir.com/support. In short: search
>> before you ask, be nice.
>>
>> You received this message because you are subscribed to
>> http://groups.google.com/group/watir-general
>> To post: [email protected]
>>
>> To unsubscribe, reply using "remove me" as the subject.
>>
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> You received this message because you are subscribed to
> http://groups.google.com/group/watir-general
> To post: [email protected]
>
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
You received this message because you are subscribed to
http://groups.google.com/group/watir-general
To post: [email protected]