In the menu, click
Execution Planning > Details View.
Click the execution plan for which you want to configure a setup or cleanup test.
In the
Test Execution Setup section, choose between a setup or cleanup test:
To define a setup test, click
(Edit) in
Setup Test. The
Edit Setup Test dialog box appears.
To define a cleanup test, click
(Edit) in
Cleanup Test. The
Edit Cleanup Test dialog box appears.
You cannot assign a test to the same execution plan as both a setup test and a regular or cleanup test. Assigned tests can
come from any test container within your project. It is therefore possible to assign tests that have associated products and
source control profiles that vary from their host execution plans.
Select a test in the
Tests tree.
Click
OK.
When failed tests are rerun, the corresponding setup/cleanup routines are also rerun. Setup/cleanup tests are not run with
Trial Run test runs because such executions do not rely on execution plans.