This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to stop/abort the test execution when the validation fails in workbench.verify

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 .

  • Suggested Answer

    0  

    Hi

    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