Can I trigger an action based on the result of test case?

You can trigger an action or actions to be performed on cloud runs based on the final status of the test case using Teardowns.

To do this, follow the steps below:

1- Navigate to the test case where you need to set the Teardown.

2- Click the Teardown icon highlighted below.

mceclip0.png

3- Add a step or steps to perform the needed action.

4- Select the Teardown Event which is the condition of the entire test case status to set this teardown in action. You can select from the below options:

A- Pass: In case the test case passes successfully, the teardown will activate. If the test case fails, it will not activate.

B- Fail: In case the test case fails, the teardown will activate. If the test case succeeds, it will not activate.

C- Any: Teardown will activate upon either succeeding or failing test cases.

mceclip1.png

5- Click Save. You can now run the test case to verify this teardown.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.