Setting up your test environment
On the Setup & Cleanup tab you can configure which actions will be performed and which objects and pages will be available on the clipboard before and after the test is run.
To set up the clipboard, complete the following steps.
-
Complete one of the following actions:
- To set up the test environment of a test case, open the Pega unit test case if it is not already open.
- To set 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 make specific user pages from the clipboard available during test execution, in the
Clipboard pages subsection of the Before rule
execution section, click Add clipboard page. Perform
the following actions:
- Optional: To select clipboard pages from a different thread, click current thread name and then click desired thread name.
- Select check boxes next to all pages that you want to be available in the clipboard during test execution.
- Click OK.
- To edit a clipboard page, click the Gear icon. You can then rename the parent page, modify the values of existing properties or add new properties and their values to the parent page and child pages.
- In the Additional clipboard data subsection of Before rule execution section, click Add step.
- Select Apply data transform, Load data page, Execute activity, Load object, Create data object, or Create work object and then provide the appropriate data transform, activity, data page, class, page name in the fields that are displayed.
- If parameters are configured on the rule, you can modify them by clicking the Parameters link and providing values in the Configure parameters dialog box.
- If keys are configured on the loaded or created object, you can define their values by clicking the Keys for the class link and providing values in the Configure parameters dialog box.
- Optional: Provide additional information in the Enter comments field.
-
In After rule execution section, click Add
step.
Note: This section is only available when setting up test cases.
- Select Apply data transform, Load data page, Execute activity, or Load object and then provide the appropriate data transform, activity, data page, class, page name in the fields that are displayed.
- 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.
- If keys are configured on the loaded or created object, you can define their values by clicking the Keys for the class link and providing values in the Configure parameters dialog box.
- Optional: Provide additional information in the Enter comments field.
- Click Save.