Thank you for your reply.

 

I want to pause the testing process at moment and at random time length, and 
resume it latterly.

 

Now, I want to know how to get keyboard input signal to cause ruby pause/resume.

 

Regards,

Jason

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?eljko Filipin
Sent: 2007年2月27日 17:27
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] Can Watir be paused & resumed manually whenrunning 
test cases?

 

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

Reply via email to