Hi, I want to write a function to the following
Function ErrorHandler()
, Need to take a scrrenshot when the error occured
How do i do this??????
' Close all open Browsers
' I have created a function for this - so i'll call the function
Call CloseBrowser()
' Report Into Data Sheet
DataTable("Result", dtGlobalSheet) = Failed
' Capture Time Stamp
' I have created a function for this - so i'll call the function
Call TimeStamp()
' Report.Reportet Event
Reporter.ReportEven
' Proceed to next iteration .....the iteration are within the for loop
How do i do this?????
End Function
Is this the right approach to handle any error.....
and when do i call this function....is calling thru recovery manager
the best approach???
Any help will be very much appreciated....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---