Documentation

Looking for something in particular?

Automation V3: Setup and Teardown Test Cases

The following includes information about how to use setup and teardown test cases.

Setup test cases


Setup test cases are designed to run at the beginning of your test case in order to declare and define conditions and variables. The primary benefit of using a setup test case is to simplify the process of making global changes to test case parameters. 

Note: If you have several test cases arranged in a test folder, the setup test case will always execute first.

How to create a setup test case


Step 1: Click the + icon and select Add a new test case button from the Tests view.

Step 2: Select Setup Test Case.

Step 3: Choose the option to create a connection. If you need to create a connection, choose the preferred option or select No Connection Required.

Teardown test case


A teardown test case will execute at the end of your test run within a test folder. Teardown test cases are used to perform post test execution actions. For example, a teardown test case can be used to delete test data generated during test execution.

Note: If you have several test cases arranged in a test folder, the teardown test case will always execute last.

The following includes instructions for creating a teardown test case. 

Step 1: Click the + icon and select Add a new test case button from the Tests view.

Step 2: Select Teardown Test Case

Step 3: Choose the option to create a connection. If you need a connection, choose the preferred option or select No Connection Required.


Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top