Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring case instance count assertions

Updated on April 8, 2022

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

For example, a Job Application case type runs a child case that processes background checks. If you record the entire Job Applicant case type and the child case type, the number of case instances for Job Application case type is one, and the number of case instances of Background Check child case type is one.

If you do not run the run the Background Check child case type when you create the test case, the number of Background Check case instances is zero.

Before you begin: Open the unit test case. For more information, see Opening a unit test case.
  1. On the bottom of the Definition tab, click Add expected result.
  2. From the Assertion type list, select Case instance count.
  3. 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.
  4. Select a comparator from the Comparator list.
  5. In the Value field, enter the number of cases to compare against the output.
  6. Optional: Click Add to add another case instance count assertion and repeat steps 4 through 6.
  7. Optional: To add a comment, click the Add comment icon, enter a comment, and click OK.
  8. Click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us