Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

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

Links may not function; however, this content may be relevant to outdated versions of the product.

Creating test cases for strategy rules

Updated on September 10, 2021

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 specific customer does not receive an offer after the strategy run.

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.

  • Previous topic Creating and configuring a PegaUnit test case for a strategy
  • Next topic Introduction of globally optimized strategies

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us