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:
Test Case rules for PegaUnit test cases are not displayed in the Record Explorer. The explorer displays only Test Case rules that are configured for AUT.
Before you can create PegaUnit test case rules, your application must be configured properly for testing. See Creating a test ruleset for details about configuring your application for automated testing.
You should not use test case rules to test data pages that reference certain system pages because running such tests could lead to inconsistent test results.
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.
Test case rules are referenced in the Test Cases tab of the rule for which they were created.
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.
A Test Case rule is an instance of the Rule-Test-Unit-Case class.