Skip to main content


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

Unit testing an activity

Updated on May 31, 2022

You can test an activity individually before testing it in the context of the application that you are developing. Additionally, you can convert the test run to a Pega unit test case.

You can use unit test the activity if one of the following criteria is met:

  • The Require Authentication to run check box is selected on the Security tab of the Activity form.
  • Your access role allows you to update rules that have the Applies To class of this activity.
  1. In the navigation pane of Dev Studio, click RecordsTechnicalActivity, and then select the activity that you want to open.
  • Clipboard contents created from activity unit tests

    When you test activities with the Run Rule feature, the system might create one or more clipboard pages, including copies of the named pages that you specified in the Run dialog box. The system retains these pages when you close the dialog box; properties on these pages remain available for you to use when you perform subsequent testing of this or other rules with the Run Rule feature.

  • Testing an activity in context

    If the activity requires extensive setup and is more appropriately tested in context rather than through unit testing, you can trigger the Tracer to start only when the activity is reached.

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