Configure a PegaUnit test case with at least one assertion (test condition) to compare the expected output of the test with the actual results returned by running the test. For example, you can verify the number of cases that were created for flows and case types. You can also configure optional information, such as modifying input parameters that were sent to the test.
Complete one of the following actions:
If you are modifying a test case, open the test case if it is not already open.
If you are creating a new PegaUnit test case, configure at least one assertion. For more information, see Assertions.
Optional: Complete any of the following actions:
Modify the parameters, if any, that are sent to the test by clicking the Gear icon next to the parameters that were sent.
There are two parameters for strategy rules:
If you rename either the componentName or pzRandomSeed parameter, the test case does not return the results that you expect to see.
For flow rules and case types, view the path of the flow or case type. The path does not display:
Child cases that do not have flow actions configured on them.
Flow actions on which post-processing is not performed.
Modify the description of the test case.
The Setup & Cleanup tab is displayed for strategy rules only when you create test cases for them in Designer Studio.
Apply additional data transforms or activities to clean up the clipboard in the Setup & Cleanup tab. For more information, see Cleaning up your test environment.
Configure assertions compare expected and actual values. See Assertions for more information.
Run a test case by clicking Actions > Run.
Click View details in the banner to view more details about the latest test result. This button is displayed after a test case has been run. For more information, see PegaUnit test case run results.
Click View previous runs in the banner to open a new dialog box that displays the test date, the run time, expected run time, and whether the test passed or failed. Click the row of a test case to view detailed test results. This link is displayed after a test case has been run.
Click Save. If you are saving the form for the first time, you can modify the identifier; however, after you save the rule form, you cannot modify this field.