> 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: [email protected]
> 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
> [email protected]
> http://rubyforge.org/mailman/listinfo/wtr-general
> _______________________________________________
> Wtr-general mailing list
> [email protected]
> 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
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to