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

image-20240821-130656.png

2- To create teardown steps, click on the Teardown tab as highlighted below:

image-20240821-130714.png

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.