QTP/(U)FT Support Tip: How to capture screenshots on General Run Errors?
How are you? I hope you are fine
As you know, QuickTest Professional/(Unified) Functional Testing have the option to save a screenshot on any error appearing in during the test run. However, when a General Run Error occurs, no screenshot is saved to the test results. The question arises, why this happens.
In general the issue is, that for a screenshot an interaction with the object has to be performed. If the object does not exist in the application a General Run Error is thrown. Logically, as the object is not existing, no screenshot can be taken. However, the QuickTest Professional help states, that a screenshot is captured, if an error occurs.
An Enhancement Request is created which requests to fix this in a future version, that should allow customers to see, at least, the screenshot of the desktop for checking the current status of QuickTest Professional and the AUT when a general error occurs.
As a workaround, the users need to create a recovery scenario that is called when a "General Run Error". With this Recovery Scenario the user needs to take a screenshot of the desktop and save it into the report.
I hope this information helps.
Functional Testing Support Engineer
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]