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 activity status assertions

Updated on April 5, 2022

You can verify that an activity returns the correct status when it runs by configuring an activity status assertion. You can also assert if an activity has an error and, if it does, what the message is so that you can validate that the message is correct.

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. In the Assertion type list, click Activity status.

  3. In the Value list, click the status that you expect the activity to return when the test runs.

  4. To validate the message that displays for the activity, select Validate message, select a Comparator, and then enter the message that you want to validate in the Value box.

  5. Optional:

    To add a comment, click the Add comment icon, enter a comment, and then 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