Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
Absent Member.. MisterT1968 Absent Member..
Absent Member..
160 views

QTP/(U)FT Support Tip: How to capture screenshots on General Run Errors?

Hello all,

 

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.

 

Best regards,

Tino Pacholski

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.]
Labels (2)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.