You are here: DevOps > PegaUnit testing > PegaUnit test cases > Configuring case instance count assertions

Configuring case instance count assertions

For flows and case types, you can verify the number of cases that were created when the case type or flow was run.

Complete the following steps:

  1. Open the PegaUnit test case if it is not already open.

  2. Complete one of the following actions:

  3. From the Assertion type list, select Case instance count.

  4. In the Of case type field, do one of the following:

  5. Select a comparator from the Comparator list.

  6. In the Value field, enter the number of cases to compare against the output.

  7. Optional: Click Add to add another case instance count assertion and repeat steps 4 through 6.

  8. Optional: To add a comment, click the Add comment icon, enter a comment, and click OK.

  9. Click Save in the rule form.