createVisualVP

createVisualVP(objectNameOrReference, vpFile)

This function creates a Visual Verification Point named vpFile to be used with Boolean test.vp(name) and Boolean test.xvp(name) in a later test run. Whereas this action is typically performed via point & click in the Squish IDE.

The expected visual state is determined through an internal call to saveObjectSnapshot(objectNameOrReference, snapshotImageFile.xml) for the object denoted by objectNameOrReference.

The newly created verification point will have all of content, geometry and screenshot checks enabled. The Visual Verification Point Editor can later be used to modify these checks.

In case vpFile already exists the function will throw a catchable script exception.

© 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