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 specific customer does not receive an offer after the strategy run.
Creating a test case for a strategy
To create a test case for a strategy, complete the following steps:
- Open the strategy rule for which you want to create a test case.
- Expand the Test run panel.
- 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:
- Open the strategy, and click the Test Cases tab.
- 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