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
-~--~~~~--~~--~--~---