test.stopVideoCapture

test.stopVideoCapture(message)

This function will stop the desktop video capture on the system where the application under test is running. The end of the video capture will be 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.

Attempting to stop video capture where no capture is currently active will result in an exception being thrown. Starting the video capture is done through test.startVideoCapture(message), or by enabling it on the commandline using --enable-video-capture option (see also Playback option –enable-video-capture).

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. The video capture will be terminated automatically when the application has been terminated.

© 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