Skip to main content

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 Actions > Run

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:
     
    Image displays the various components on the Result page of a PegaUnit test.

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 Run selected.

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 Run selected to run the test cases in a batch.

Image depicts how the user can run multiple test cases of a specific rule from the Test cases tab of the rule.

To view the details of all historical runs of any Pega unit test case, users must click View in the 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:

Image displays the view of History information after clicking “View history” of a PegaUnit 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.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice