test.vpWithImage
Boolean test.vpWithImage(name, imageOrFilePath)
This function executes the screenshot verification point called name
where comparison will be performed with the imageOrFilePath
instead of obtaining a screenshot of the object specified in the verification point file. The imageOrFilePath
can be either a Image object or a path to the image file. If the verification point's comparison succeeds, a test result of type PASS is added to the test log and this function returns a true value. Otherwise a result of type FAIL is added to the test log and a false value is returned. If the VP contains/verifies more than a single object or is not a screenshot VP, test.vpWithImage()
will log an ERROR.
The testSettings.breakOnFailure property can be used to make the debugger stop in case the verification fails.
The testSettings.throwOnFailure property can be used to make this function raise a script exception in case the verification fails.
© 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.