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- Add steps for your teardown. This will look pretty much the same way as it does on Steps tab, but player controls, recorder and dataset selection icons will not be visible. You can record steps in your Steps tab and cut them into the Teardown if needed.
4- Once finished, 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 same as in main test case steps. Note that teardown failures will not change the status of the main test.