Improvements for test cases and assertions
Valid from Pega Version 8.4
The process of modifying test cases and assertions has been improved. Adjusting test cases to application changes is now much easier.
You now can:
- Select a page on which to run a tested rule.
- Change the class and rule of unit test cases.
- Create assertions that validate specific error messages on pages, properties, and activities.
- Automatically update decision result assertions with property changes made to a rule.
- Modify a rule's properties directly from decision result assertions.
For more information, see:
- Updating scenario tests
- Setting up your test environment
- Configuring page assertions
- Configuring property assertions
- Configuring decision result assertions
Simulation of data pages and third-party connections
Valid from Pega Version 8.4
When configuring your unit test case environment, you can now set up simulated data for connector and data page rules, instead of connecting to external sources.
By simulating such data calls, you are not dependent on any third-party server when running your tests.
This feature supports the following rules:
- Data page
- Connect-Cassandra
- Connect-CMIS
- Connect-dotNet
- Connect-EJB
- Connect-HBase
- Connect-HTTP
- Connect-Java
- Connect-JMS
- Connect-MQ
- Connect-REST
- Connect-SAP
- Connect-SAPJCo
- Connect-SOAP
For more information about simulating third-party connections, see Simulating data pages and third-party connections.
New branch quality dashboard
Valid from Pega Version 8.4
Pega Platform™ 8.4 introduces a new branch quality dashboard that shows the following metrics:
- The branch’s guardrail compliance score and the number of guardrail violations
- The percentage and number of unit tests that passed for the branch
- The percentage and number of rules that the tests cover
- Potential merge conflicts that can be addressed directly from the branch quality dashboard
For more information about the new branch quality dashboard, see Viewing branch quality and branch contents.