Skip to main content


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

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Configuring case status assertions

Updated on April 5, 2022

You can configure a case status assertion on a flow or case type to verify the status of the case.

If you have multiple assignments on a flow or case type, you can configure a case status on each assignment. The pyWorkPage on the clipboard captures the latest case status, which depends on where you stop recording the flow or case type.

For example, your flow has a Customer Details assignment, with the case status set as New. It also has a subflow with an Account Information assignment, with the case status set as Pending.

If you record only the Customer Details assignment, the case status, which is captured in the .pyStatusWork property on the pyWorkPage, is set to New. If you also record the Account Information assignment, the case status is set to Completed.

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 status.

  3. Select the comparator from the Comparator list.

  4. In the Value field, press the Down Arrow key and select the case status.

  5. Optional:

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

  6. Click Save.

Related Content

Article

Converting unit tests to test cases

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