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 tab highlighted below.
3- Add a step or steps to perform the needed action.
4- Go back to Information tab
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.
5- Click Save. You can now run the test case to verify this teardown.
Comments
Please sign in to leave a comment.