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
How will you find the current time of the remote machine using QTP script?
what is supply chain management?
How the exception handling can be done using quicktest professional?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
Where is the Bitmap checkpoint information stored?
After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans
what is the difference btn risks & Therads in the Test plan documentation?
Explain the features of quick test pro(qtp)?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
HOw to add the recovery file at runtime to the test file .
Are Shared ORs read-only?
i need qtp tutorial. pls send it to sridhar.k151@g mail.com
what function you write to do database testing with the help of qtp?
What does mean by Scope of Automation?n How we defined it?
How many ways is to parameterize the value?