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.
- From the right-hand side of the strategy canvas, expand the Test run panel.
- In the Test run panel, click the Single case tab.
-
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:
- Select a data set that is the source of the test run.
- 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:
- In the Data flow field, specify the data flow that is the source for the test run.
- 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.
-
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:
- Click Save & Run.
-
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.
- To convert the test into a PegaUnit test case, click Convert to test.
-
Configure the PegaUnit test case. See Modifying PegaUnit test cases for more information.