Run Pega unit test cases and view results
Pega unit test cases can be run in two modes:
- Individual test case run
- Batch run
Individual test case run
In the Individual test case run mode, to run a single test case, users open a rule and then select > .
After running the test case, the test result is displayed at the top of the test case rule form. Users can view the following details of a test case run by selecting View details:
- Time stamp of the test case run and who ran the test case
- The Rule associated with the test case
- Parameters sent
- Errors and unexpected results for a failed test
The following figure shows a Results page, on which users view the Pega unit test results:
Batch run
In Batch run mode, users run multiple test cases at a time from the Test cases tab on the PegaUnit landing page, by selecting multiple test cases and then clicking .
When all the test cases have been run, the result of each test case displays next to the test case on the landing page.
When users apply filters to select and run test cases, the same filter must be applied again to view the results of the selected test cases. Users can run multiple test cases on a specific rule from the Test cases tab of the rule itself.
The following image shows a filter for test cases of the Case type rule. Users can select all the filtered test cases and click to run the test cases in a batch.
To view the details of all historical runs of any Pega unit test case, users must click Run history column of the corresponding test case on the Pega unit landing page, or click the View previous runs link on the Pega unit Rule form.
The following figure shows history information that users see after clicking View history for a Pega unit test case:
To view details about any specific run on the History tab, users must click the respective test run to open the Results page of that run of the test case.
This Topic is available in the following Module:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?