[wtr-general] Re: How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread karim rayani

You can use begin rescue ensure statement for exception handling, this
is the exception handling syntax for ruby
begin

 code
rescue e
. write to file the description of failure
ensure
... close the database connection
end



On Mon, May 4, 2009 at 2:36 PM, sHiVa krapa.ph...@gmail.com wrote:

 Hi all,

 While running my test suite, if any exception is raised, that is
 handled by my driver program and rest of the scripts are executing
 smoothly. But if any unexpected popup which is not expected on the
 application, then total script is getting blocked from execution. Can
 any one give me an idea to handle such kinds of show stoppers?

 In QTP, i use recovery scenarios for handling unexpected script
 blockers. But in Watir, do we have any such kind of features?

 Writing separate Thread to listen those kinds of script blockers is
 possible?


 Regards

 Siva Phaneendra Krapa

 




-- 
Regards,

Alkarim Rayani

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How to write Recovery Scenario in Watir for unexpected popups

2009-05-04 Thread sHiVa

I am able to handle known and unknown  exceptions. The main problem
is, if some unexpected popup alert is appeared in the application how
can i handle it? With out click the alert popup, my script will never
move on.

My Idea of handling unknown popup alert is handling with threads. One
thread must continuously listen popup and based on the popup creation
time, that has to be clicked.

But how can i find the creation time of a popup?

Or any other idea?

Regards
Siva Phaneednra Krapa
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---