How to capture screenshots of Exceptions/Errors during run-
time?
Answer Posted / ravi_kanakam
When error occurs you can take screenshot of the desktop
and send the bitmap to result file.
if error occurs then
Desktop.CaptureBitmap("c:\bitmap.bmp")
Reporter.ReportEvent micFail, "Error Name", "<<img
src="c:\bitmap.bmp>"
end if
The above code will send the screen shot to the Result File.
Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
What is quicktest professional window?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
How many types of recording modes are there?
How you can decide which type of object repository you have to use?
Hi we are using QTP9.0 for Seibel Application and this seibel application will give you a popup messagebox which is of web , so qtp takes 3 mins to recognize the messagebox and to click on it , we have more number of messageboxes like this . please suggest me some solution
What is the expert view?
What is method name to compare two XML files.
What are test settings and global settings?
How you know that a test case is a regression test case
What is a recovery scenario?
Mention the test steps of qtp.
What are the different recording modes and how do they work?
Can any one send me the QTP Basic Coding Samples?
Hi, is it possible for recording shortcut key during record session? The application on which I am working is web based application. This application has several shortcut key associated with menu option. I have succesfully recorded all menu option but unable to record shortcut key.
Explain types of output values?