Posts: 30
Threads: 14
Joined: Jul 2011
Reputation:
0
08-10-2011, 02:23 PM
Hi,
While running my tests, i get some unexpected Errors like " Error found click here to go back " . for this situation i added a recovery senario. but my requirement is can i capture or make a note of such errors to confirm that error has occured/exists . Also is there any option to check after which step it occured?
Posts: 30
Threads: 14
Joined: Jul 2011
Reputation:
0
08-10-2011, 02:49 PM
If i Write this line "Desktop.CaptureBitmap(Imagename,True)" at the start or end of the script will it capture all the errors and save in required loaction or i have define this every time through out the script?
Image name here is the one which we save in recovary scenario?
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
08-10-2011, 02:53 PM
Desktop.CaptureBitmap(Imagename,True) will take the screen shot of the current active screen.
If its an error msg box it will capture it.
So its better 2 use it in recovery scenario.
When error occurs recovery scenario will triggers and this will capture the screen shot of the error.
Correct me if wrong
Regards,
Sankalp
Posts: 257
Threads: 10
Joined: Oct 2011
Reputation:
2
01-07-2012, 10:17 AM
Go to tools--->options--->Run-->ScreenCapture then select the check box "Save still image captures to result" and choose "for errors and warnings" in dropdown
you will then see the Error snapshot in the result file generated.
Posts: 2
Threads: 0
Joined: Oct 2014
Reputation:
0
10-29-2014, 02:00 PM
hiii.
I am facing same problem.
I want application screenshot along with error message that QTP/UFT popup showing(screenshot of error message)
Please help me
Thank you
Posts: 2
Threads: 0
Joined: Oct 2014
Reputation:
0
10-30-2014, 02:34 PM
@ ravi.gajul
Not showing error popup
Only showing application screenshot
Posts: 257
Threads: 10
Joined: Oct 2011
Reputation:
2
10-30-2014, 03:19 PM
I doubt in your case whether this would work.This is mainly for object based errors and checkpoints.However, if you are using QTP 9.5 or above, you have an option to save the entire test run as a movie. It definitely is an overhead in terms of space and performance but it really helps when debugging becomes a nightmare.