Re: [Wtr-general] Can Watir be paused & resumed manually when running test cases?

2007-05-01 Thread Charley Baker

 I'd highly second that. It's small simple and breaks you out where you
want to be to inspect your current state through irb. It's been dropped and
ruby-debugger is the newer project, but since I haven't had a need for much
else, I haven't looked at ruby-debugger yet. The ruby eclipse plugin also
has debugging facilities, but since I don't run through Eclipse but by
command line, I can't say too much about it, other than it's your basic ide
debugger.

-Charley

On 5/1/07, Bret Pettichord <[EMAIL PROTECTED]> wrote:


Željko Filipin wrote:
> For more functionality, see ruby-breakpoint
> (http://rubyforge.org/projects/ruby-breakpoint/
> ) or ruby-debug
> (http://rubyforge.org/projects/ruby-debug/). I have not used them, but
> I have read at this list that ruby-breakpoint can pause and then
> resume ruby script.
I use ruby-breakpoint all the time. I strongly recommend that all Watir
users take a look at this. It is a great tool for debugging scripts. In
my view it is actually what people want when they say they want a
debugger.

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Can Watir be paused & resumed manually when running test cases?

2007-05-01 Thread Bret Pettichord
Željko Filipin wrote:
> For more functionality, see ruby-breakpoint 
> (http://rubyforge.org/projects/ruby-breakpoint/ 
> ) or ruby-debug 
> (http://rubyforge.org/projects/ruby-debug/). I have not used them, but 
> I have read at this list that ruby-breakpoint can pause and then 
> resume ruby script.
I use ruby-breakpoint all the time. I strongly recommend that all Watir 
users take a look at this. It is a great tool for debugging scripts. In 
my view it is actually what people want when they say they want a debugger.

Bret
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Can Watir be paused & resumed manually when running test cases?

2007-05-01 Thread annapurna
Please can you provide steps to use the ruby-debugger.

Thanks in advance,
anna
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Can Watir be paused & resumed manually when running

2007-02-28 Thread John Fitisoff
> How to catch keyboard input signal by manual to
> pause/resume the testing process, for example using
> CTRL+P to pause and CTRL+R to resume.

There's a really easy, low-tech way to do this in
Windows. Any console application can be paused by
selecting part of the console window. Try this:

-Open a windows command prompt.
-Right-click on the title bar and select Properties.
-Select the Options tab, check QuickEdit Mode, click
OK.
-Start running the test script.
-Stop the script by selecting some area of the console
window so that it's now highlighted (it may take a
second for the current browser action to finish
completing). 
-Right-click in the window to clear the selected area
so the script can continue.

It's basically the same as a keypress option without
the need to worry about coding the behavior. 




--- Jason He <[EMAIL PROTECTED]> wrote:

> Yeah, ruby-breakpoint could pause the application,
> but it depends on the program and the test
> condition.
> 
> How to catch keyboard input signal by manual to
> pause/resume the testing process, for example using
> CTRL+P to pause and CTRL+R to resume.
> 
> Thanks,
> Jason
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of John Lolis
> Sent: 2007Äê2ÔÂ27ÈÕ 21:06
> To: wtr-general@rubyforge.org
> Subject: Re: [Wtr-general] Can Watir be paused &
> resumed manually when running
> 
> I like using 
> 
> http://rubyforge.org/projects/ruby-breakpoint/
> 
> all you do is call "breakpoint()" and the
> application stops. The best part is that you are now
> at the IRB prompt so you can do all sorts of fun
> things :)
> 
> I setup my smoke test to call break point on any
> exception, i can then hop in and see exactly whats
> going on and fix it.
>
-
> Posted via Jive Forums
>
http://forums.openqa.org/thread.jspa?threadID=6704&messageID=19277#19277
> ___
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> ___
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general



 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Can Watir be paused & resumed manually when running

2007-02-27 Thread Jason He
Yeah, ruby-breakpoint could pause the application, but it depends on the 
program and the test condition.

How to catch keyboard input signal by manual to pause/resume the testing 
process, for example using CTRL+P to pause and CTRL+R to resume.

Thanks,
Jason

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Lolis
Sent: 2007年2月27日 21:06
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Can Watir be paused & resumed manually when running

I like using 

http://rubyforge.org/projects/ruby-breakpoint/

all you do is call "breakpoint()" and the application stops. The best part is 
that you are now at the IRB prompt so you can do all sorts of fun things :)

I setup my smoke test to call break point on any exception, i can then hop in 
and see exactly whats going on and fix it.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6704&messageID=19277#19277
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Re: [Wtr-general] Can Watir be paused & resumed manually when running

2007-02-27 Thread John Lolis
I like using 

http://rubyforge.org/projects/ruby-breakpoint/

all you do is call "breakpoint()" and the application stops. The best part is 
that you are now at the IRB prompt so you can do all sorts of fun things :)

I setup my smoke test to call break point on any exception, i can then hop in 
and see exactly whats going on and fix it.
-
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6704&messageID=19277#19277
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


Re: [Wtr-general] Can Watir be paused & resumed manually when running test cases?

2007-02-27 Thread Željko Filipin

If you need to pause for fixed time, try

sleep 1 # 1 second pause

For more functionality, see ruby-breakpoint (
http://rubyforge.org/projects/ruby-breakpoint/) or ruby-debug (
http://rubyforge.org/projects/ruby-debug/). I have not used them, but I have
read at this list that ruby-breakpoint can pause and then resume ruby
script.
--
Zeljko Filipin
zeljkofilipin.com
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[Wtr-general] Can Watir be paused & resumed manually when running test cases?

2007-02-26 Thread Jason He
Hi,

 

I want add the pause/resume feature into the watir testing, rather than
interrupt it and restart the whole testing process.

 

Please anybody tell me if it is possible, or is there such solution on
hand already.

 

Thanks

Jason

 

___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general