Executes a verification asset. Throws an ObjectNotFoundException if the UI object to verify cannot be found.
result = Verification.VerifyAsset(verificationAsset[, verifyFlags)
Variable | Description |
---|---|
result | Whether the verification was successful. BOOLEAN. |
verificationAsset | The name of the verification asset to execute. STRING. |
VerifyFlags | Optional: Whether a screenshot should be captured if the verification fails. This is an enumeration with the following possible values:
|
Workbench.VerifyAsset("myImageAsset")
Workbench.VerifyAsset("myImageAsset", verifyFlags.ScreenShotOnFailure)