Test Case Teardowns
Teardowns are used in automated test cases to execute predefined steps in case of the following events/conditions:
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.
1- Select your Teardown Event on Information tab
2- To create teardown steps, click on the Teardown tab as highlighted below:
3- Click Save.
4- Simulate your test case to check if the teardown runs according to the event/condition that you set. In case there is a failure in the teardown, it will stop automatically.