Understanding unit test cases
A test case identifies one or more testable conditions (assertions) used to determine whether a rule returns an expected result. Reusable test cases supports the continuous delivery model, providing a means to test rules on a recurring basis to identify impacts of new or modified rules.
You can create unit test cases for the following types of rules:
- Activities
- Case types
- Collections
- Data pages
- Data transforms
- Decision tables
- Decision trees
- Declare expressions
- Flows
- Map values
- Report definitions
- Strategies
- When
You can use one or more data pages, data transforms, or activities to set up the clipboard data before running the rule as part of the test case. You can also use activities to create any required test data such as work or data objects. After you run a unit test case or test suite, data pages used to set up the test environment are automatically removed. You can also apply additional data transforms or activities to remove other pages or information on the clipboard.