Configuring a single case run

Run a single case run to test your strategy against one particular record (customer). Single case runs allow you to test whether the strategy that you created is set up correctly and delivers expected results.

You can then optionally convert the test run into a PegaUnit test case for which you can provide assertions (test conditions) that allow you to compare the expected output of a test to actual test results.

  1. From the right-hand side of the strategy canvas, expand the Test run panel.
  2. In the Test run panel, click the Single case tab.
  3. Specify the source and the subject of the test run:
    • Select Data set to use a particular data set as the subject of the test run (for example, a data table with customers) and perform the following actions:
      1. Select a data set that is the source of the test run.
      2. In the Subject ID field, specify the record (customer) that is the subject of the test run.
    • Select Data Transform and specify a data transform instance as the subject of the test run.
    • Select Data flow to use a data flow as the source of the test run and perform the following actions:
      1. In the Data flow field, specify the data flow that is the source for the test run.
      2. In the Subject ID field, specify the record (customer) that is the subject of the test run.

      When you test a strategy on a data flow, the system runs the specified data flow and then uses the output of that data flow for the selected subject ID in the test run.

  4. Click Save & Run.
  5. View the results:
    • From the Show property list, select the property to display at the top of each strategy shape in the strategy canvas. The label that appears on top of each strategy shape displays the test run results for the selected property.
    • Click on a strategy shape to view the test run results for that shape in the RESULTS section.
    • Click the Results strategy shape to view the test run results for the entire strategy in the RESULTS section.
  6. To convert the test into a PegaUnit test case, click Convert to test.
  7. Configure the PegaUnit test case. See Modifying PegaUnit test cases for more information.