test.startVideoCapture

test.startVideoCapture(message)

This function will start the desktop video capture on the system where the application under test is running. The video file will be stored as part of the test report and logged in the test report using the specified message. The message is optional: if it is not specified, a default message containing the application name will be added to the report.

At any point in the script, there can be only one video capture for a given application context. Attempting to start another video capture on the same application context will result in an error.

The video capture will be stopped when the application under test terminates or is disconnected from, either through the test script commands or as part of the ending of the test case. In case of sudden, unexpected terminations of the application under test, the video file may be incomplete.

The video capture can be explicitly terminated at any point after starting it using the test.stopVideoCapture(message).

If video capture is enabled for all applications through --enable-video-capture commandline option, then this function will only add a log message to the test report (see also Playback option –enable-video-capture).

Note: The video capture feature has some technical limitations listed in Known Video Capture Limitations in our Knowledge Base.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.

Search Results