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:
Complete one of the following actions:
Open the PegaUnit test case if it is not already open, and then click the Definition tab.
If the PegaUnit test case is open and you have not saved the case, click Done on the Definition tab.
Complete one of the following actions:
To add a new assertion, click Add expected result at the bottom of the page.
Modify an existing assertion.
From the Assertion type list, select Case instance count.
In the Of case type field, do one of the following:
To select a case type from your work pool, press the Down Arrow key and select the case type.
Enter a case type that is not part of your work pool.
Select a comparator from the Comparator list.
In the Value field, enter the number of cases to compare against the output.
Optional: Click Add to add another case instance count assertion and repeat steps 4 through 6.
Optional: To add a comment, click the Add comment icon, enter a comment, and click OK.
Click Save in the rule form.