Skip to main content


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

Creating role-specific scenario tests

Updated on April 8, 2022

For more comprehensive and improved testing, you can create role-specific scenario tests that record interactions between your application and a user with a specific role. Then, you can conveniently run scenario tests for all access roles that your operator includes. For example, if you are an administrator with access to access roles of a manager and an HR worker in an HR application, you can create and then run tests that focus on interactions assigned to an administrator, a manager, and an HR worker.

Before you begin:
  1. Start creating a scenario test.
    For more information, see Creating scenario tests.
  2. After you finish recording the scenario test, on the New test case form, select the Role specific test checkbox.
  3. In the AccessGroupInfo field, provide an access group that applies to the test.
    For example: To indicate that the scenario test applies to the UI that an HR worker views, select MyApp:HRWorker.
  4. Click Save.
Result: The Test cases tab on the Application: Scenario testing landing page includes a field with an access group related to the role specific to the test, as shown in the following figure. For greater convenience, you can use an access group as a filter to open and run role-specific scenario tests.
Test cases
A list of test cases for different access groups.
You can ran multiple test cases with different access groups in a batch. For every role, the context switches and after running all selected tests, the context switches back to an initial access group. If you want to run a role-specific test for an access group that your operator does not include, an exception occurs. To handle the exception, add the relevant access group to your operator.
What to do next: Explore scenario tests available in your application. After opening a scenario test, you can also define if the test is role-specific. For more information, see Opening a scenario test case.

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