VerifyAsset Method (Workbench)

Class

Workbench.

Action

Executes a verification asset. Throws an ObjectNotFoundException if the UI object to verify cannot be found.

Syntax

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:
  • None
  • ScreenShotOnFailure
VerifyFlags.

Examples

To execute a verification of the image asset myImageAsset, type:
Workbench.VerifyAsset("myImageAsset")
To execute a verification of the image asset myImageAsset and to add a screenshot to the result file if the verification fails, type:
Workbench.VerifyAsset("myImageAsset", verifyFlags.ScreenShotOnFailure)