Creating screenshots with QF-Test

After the execution you can find the screenshot in the corresponding run log.

Run log Screenshot in QF-Test

It is also possible to save the screenshot on the hard drive. A Jython Server / SUT script with the following content helps here:

from imagewrapper import ImageWrapper  
iw = ImageWrapper(rc)  
screenshot = iw.grabScreenshot()  
iw.savePng(r"C:/temp/foo.png", screenshot)

It is relatively easy to take a screenshot of the complete picture with the help of QF-Test. For example, to create a screenshot of the current desktop, only the procedure logScreenshot must be called. (The following blog article explains how to insert a procedure call.)

It should be noted that screenshots can consume a lot of storage space. In this respect, a screenshot should not necessarily be created after each step – even if this is relatively easy to do. (With the help of a Testrunlistener)

In practice the whole thing looks like this:

QF-Test Screenshot call

We use "Matomo" cookies to anonymously evaluate your visit to our website. For this we need your consent, which is valid for twelve months.

Cookie Configuration

Functional cookies

We use functional cookies to ensure the basic functionality of the website.

Performance and statistics cookies

We use Matomo for analyzing and optimizing our website. Cookies permit an anonymous collection of information that help us offering you a clear and user-friendly visit of our web pages.

Cookie details
Description Vendor Lifetime Type Purpose
_pk_id Matomo 13 Months HTTP Contains a unique, pseudonymized visitor ID internal to Matomo for recognizing returning visitors.
_pk_ref Matomo 6 Months HTTP Used to track from which website the anonymized user proceeded to our website.
_pk_ses Matomo 1 Day HTTP The Matomo session cookie is used to track the visitor's page requests during the session.
_pk_testcookie Matomo Session HTTP Used to check whether the visitor's browser supports cookies.
_pk_cvar Matomo 30 Minutes HTTP Temporarily store data about the visit.
_pk_hsr Matomo 30 Minutes HTTP Temporarily store data about the visit.