Data Page Unit Test Case rules
|
|
Use Unit Test Case rules to capture unit test cases for data pages in a Pega 7 application. The test case contains the test criteria and expected results. Unit Test Case rules are created for Data Pages to enable the testing of a data page within an application.
Note: Before you can use data page unit test rules, your application must be configured properly for testing. See the PDN article Automated Data Page Testing: Application Setup.
The latest result for the test case is shown in the banner at the top of the page. The result displays whether the test succeeded or failed, when the test was last run and the actual and expected run times. Clicking the View details button will provide more details about the latest result.
When you add new rules, you need to add the test case rules to a ruleset. That ruleset has to be a test ruleset with the Use this ruleset to store test cases check box selected in the ruleset category tab under the Test automation settings.
Click the View previous runs button to open a new dialog displaying 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 the detailed test results.
Data pages that reference certain system pages may not be tested using unit test case rules as running such tests may lead to inconsistent test results.
Unit Test Case rules are referenced through Data pages. Existing data page unit tests are accessed on the Test cases tab of the Data page rule. In the Records Explorer, select Data Model > Data Page and click on the name of a data page. From the data page record detail, click the Test cases tab.
Use the Data Page explorer to view all available unit test rules.
Existing unit test case rules can be accessed on the Data page test case landing page.
A Unit Test Case rule is an instance of the Rule-Test-Unit-Case class.