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

Case instance count assertions

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

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.