Capture Error Screen Shots

If error pop up comes during execution then how will you capture the error screen shot and where it is stored?

Questions by ivreddy   answers by ivreddy

Showing Answers 1 - 15 of 15 Answers

kapilet05

  • Sep 25th, 2010
 

You can save this screen shot to report by using below command.

Desktop.CaptureBitmap "C:ErrorScreenShot.png"
Reporter.ReportEvent micDone,"image","<img src='C:ErrorScreenShot.png'>"

Let me know if you need more info.

  Was this answer useful?  Yes

1. Another way apart from the code is to check the check box "Save image of desktop when error occurs" which is in the Run nod eof the Test Settings box.

2. You can also use the recovery scenario

3. QTP 10 now comes with a feature to capture images and also record movie clips of your run session. To explore more goto Tools -> options -> Run -> Screen Capture and select "For Errors" from the drop down

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions