Cleaning up your test environment
After you run a 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.
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.
Provide additional information in the Enter comments field.
- Test environment cleanup
After you run a 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.
- Data page testing
Data page test cases are a way to validate that application data is loaded correctly. Data page test cases compare the expected value of one or more properties with their actual values in a data page.
- Creating unit test cases for rules
For most rules, you can create a reusable test case by converting a unit test to a test case, configuring case details, and then defining expected test results with assertions (test conditions). When the test case runs, the test results are compared to the expected results defined for the rule’s assertions. If the test results do not meet the defined assertions, then the test fails.
- Creating unit test cases for flows and case types
When you create a unit test case for a flow or case type, you run the flow or case type and enter data for assignments and decisions. The system records the data that you enter in a data transform, which is created after you save the test form. You can start recording at any time.