how to stop/abort the test execution when the validation fails in workbench.verify . I dont want to run any more if a validation fails . just to stop the test on the first validation on failure .
Please LET ME KNOW YOUR THOUGHTS ONT THIS . THANKS .
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it! Learn more.
how to stop/abort the test execution when the validation fails in workbench.verify . I dont want to run any more if a validation fails . just to stop the test on the first validation on failure .
Please LET ME KNOW YOUR THOUGHTS ONT THIS . THANKS .
You will need to manually check the status of the verification then throw your own exception to stop the test execution with a failure:
Dim st_verify_status = Workbench.Verify(True, False, "Failed")
If st_verify_status = False Then
Throw New Exception("Verification Failed")
End If
I hope that helps.
-Robert