This content has been archived and is no longer being maintained.

Table of Contents


Creating test cases for strategy rules

After a strategy is configured with customer information, you can run a single test case to test your strategy against a record of customer information. You can then convert the test run to a test case, which you can manually run to compare the output of the strategy to the results that you expect the strategy to return. For example, you can verify that a customer is excluded from a whitelist.

Your application must be configured to support PegaUnit testing of rules. For more information, see Creating a test ruleset.

Creating a test case for a strategy

To create a test case for a strategy, complete the following steps:

  1. Open the strategy rule for which you want to create a test case.
  2. Expand the Test run panel.
  3. Configure the test information and convert it into a test case. For more information, see Configuring a single case run.

Next, you can configure test conditions (assertions) on the test case to compare expected results to actual results that are returned by the test case. For more information, see Assertions.

​Running a test case and viewing its results

To run a test case and view its results, complete the following steps:

  1. Open the strategy, and click the Test Cases tab.
  2. ​Click Run selected.

The Result column displays the result (Passed or Failed), which you can click to open the test results.

Published October 3, 2016 — Updated August 22, 2018

100% found this useful

Related Content

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.