Pega unit test cases

After you develop rules, you can test them and then convert the test runs to Pega unit test cases to validate application data by comparing expected property values to the actual values that are returned by the test.

For example, you can create a test for a data page that contains customer information and verify that a discount of 10% is applied to VIP customers.

You can use Pega unit rule testing on the following types of rules:

  • Activities
  • Case types
  • Collections
  • Data pages
  • Data transforms
  • Decision tables
  • Decision trees
  • Declare expressions
  • Flows
  • Map values
  • Report definitions
  • Strategies
  • When

You can also group related test cases into test suites, which run all the test cases in the suite in the order that you specify.