[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-21 Thread chethan sarathy
Thanks alan, I got the solution thanks once again. Chethan --- On Tue, 21/10/08, Alan Baird <[EMAIL PROTECTED]> wrote: From: Alan Baird <[EMAIL PROTECTED]> Subject: [wtr-general] Re: How to use Watir::Exception::TimeOutException To: watir-general@googlegroups.com Date: Tuesday

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-20 Thread Alan Baird
Chethan - Here is how you would apply a timeout loop to the code you provided: require 'test\unit' require 'timeout' class MyTest < Test::Unit::TestCase def test_sample_01 begin Timeout::timeout(3) do require "testcase_01" # test cases end rescue Timeout::timeout

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-20 Thread chethan sarathy
: Charley Baker <[EMAIL PROTECTED]> Subject: [wtr-general] Re: How to use Watir::Exception::TimeOutException To: watir-general@googlegroups.com Date: Tuesday, 21 October, 2008, 12:21 AM I missed part of the conversation, so sorry if I'm missing something. Why are you not using Ruby'

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-20 Thread Charley Baker
e from a bat file. > > > > Is this make sense? if you need any more info about my framework let > me know. > > > > Thanks, > > Chethan > > > > --- On Thu, 16/10/08, Alan Baird <[EMAIL PROTECTED]> wrote: > > From: Alan Baird <[EMAIL PROT

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-20 Thread Chethan
f you need any more info about my framework let me > know. > > Thanks, > Chethan > > --- On Thu, 16/10/08, Alan Baird <[EMAIL PROTECTED]> wrote: > From: Alan Baird <[EMAIL PROTECTED]> > Subject: [wtr-general] Re: How to use Watir::Exception::TimeOutExceptio

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-16 Thread chethan sarathy
up. these kind of scenarios > > Regards, > Chethan > > --- On Thu, 16/10/08, Alan Baird <[EMAIL PROTECTED]> wrote: > > From: Alan Baird <[EMAIL PROTECTED]> > Subject: [wtr-general] Re: How to use Watir::Exception::TimeOutException > To: watir-general@googlegro

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-16 Thread Alan Baird
L PROTECTED]> wrote: > > From: Alan Baird <[EMAIL PROTECTED]> > Subject: [wtr-general] Re: How to use Watir::Exception::TimeOutException > To: watir-general@googlegroups.com > Date: Thursday, 16 October, 2008, 7:52 PM > > Chethan - > > Here is another way t

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-16 Thread chethan sarathy
these kind of scenarios Regards, Chethan --- On Thu, 16/10/08, Alan Baird <[EMAIL PROTECTED]> wrote: From: Alan Baird <[EMAIL PROTECTED]> Subject: [wtr-general] Re: How to use Watir::Exception::TimeOutException To: watir-general@googlegroups.com Date: Thursday, 16 October, 2008, 7:52 PM

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-16 Thread Alan Baird
Chethan - Here is another way to add a generic timeout to any task using the Timeout class. require 'timeout' n = 0 begin Timeout::timeout(5) do loop do puts n n += 1 sleep (0.5) end end rescue Timeout::Error p "oops timeout!!" #~ exit end p "the end" --~--~

[wtr-general] Re: How to use Watir::Exception::TimeOutException

2008-10-15 Thread Tony
Hi Chethan, Iam not sure what you are actually trying to do. Are you trying to say that sometimes when your website is down, watir just waits for the page to load indefinitely, hence your testcase just gets stuck. I assume you want to create a timeout exception when this occurs. You could modify