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
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
: 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'
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
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
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
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
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
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"
--~--~
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
10 matches
Mail list logo