You are here: Record management > Rule and application testing > PegaUnit testing > Configuring decision result assertions

Configuring decision result assertions

After you create a PegaUnit test case for a decision table or decision tree, the system generates a decision result assertion. This assertion displays the input values used to test the rule and the result generated by the rule, as provided in the Decision result section in the Run Rule dialog box.

Note: This assertion is supported on decision tables and decision trees only.

You can modify the input values and the default decision result by completing the following steps:

  1. Complete one of the following actions:

  1. Optional: Add either multiple input values and results to the assertion, or add other assertions.

    Notes:

    Complete one of the following actions:

  2. Save the rule form.

    The test case runs the decision tree or decision table with each input combination and compares the result with the expected decision result for that combination.

    It then either runs other decision result combinations or other assertions that are configured. If the expected result of any of the input combinations in the decision result assertion does not match the result that the rule returns, the assertion fails.