You are here: Reference > Rule types > Test Case rules for PegaUnit test cases

Test Case rules for PegaUnit test cases

Use Test Case rules to capture PegaUnit test cases for rules in a Pega Platform application. The test case contains the test criteria and expected results.

It the test case rule has been run, the latest result is shown in the banner at the top of the rule form. The result displays whether the test succeeded or failed, when the test was last run, and the actual and expected run times.

Notes:

Access

You can view all Test Case rules by selecting Designer Studio > Application > Automated Testing > Test Cases.

You can view Test Case rules for a specific rule type in the Test Cases tab.

Where referenced

Test case rules are referenced in the Test Cases tab of the rule for which they were created.

Viewing the Java code of a rule

Click Actions > View Java to view the generated Java of a rule. You can use the Java code to debug your application or to examine how rules are implemented.

Class

A Test Case rule is an instance of the Rule-Test-Unit-Case class.