Cleaning up your test environment
After you run a Pega unit test case or test suite, user and data pages used to set up the test environment and the parameter page are automatically removed by default. You can apply additional data transforms or activities to remove other pages or information on the clipboard before you run more test cases or suites.
Complete the following steps.
-
Complete one of the following actions:
- To clean up the test environment of a test case, open the Pega unit test case if it is not already open.
- To clean up the test environment of a test suite, open the Pega unit test suite if it is not already open.
- Click the Setup & Cleanup tab.
- To keep the test data on the clipboard at the end of the test run, clear the Cleanup the test data at the end of run check box in the Cleanup section.
- In the Cleanup section, click Add step.
- Select Apply data transform or Execute activity, and then provide the appropriate data transform or activity in the next field.
- If parameters are configured on the rule, you can configure them by clicking the Parameters link and providing values in the Configure parameters dialog box.
- Optional: Provide additional information in the Enter comments field.
- Click Save.