Question
Pegasystems Inc.
AU
Last activity: 26 Nov 2024 21:48 EST
Back to back role based scenarios in a suite
Is anybody able to succesfully setup a scenario test suite with back to back scenarios running with different roles.
E.g.
Scenario 1 --> User role creates and submits a case for approval
Scenario 2 --> Manager role searches for the case and approves the case
Scenario 3 --> User role reviews and closes the case
Suite --> Scenario 1 + Scenario 2 + Scenario 3
Did this setup work for anyone? I see many issues running these.
Some times it throws JS error (Can not read properties of undefined stateManager while switching the AG); and some other times a step just freezes on the screen with no progress or failure.
Has anyone got this setup to work consistently?
@Tarun Bolla you can tag each scenario test case to a specific role by selecting the Role specific test checkbox while creating the test case. This allows you to achieve end-to-end automation for scenarios that involve multiple roles. For instance, in your example, the User role can create and submit a case, the Manager role can approve it, and then the User role can review and close the case. However, if you encounter issues such as JavaScript errors or freezing steps, it may be due to the absence of specific privileges required for scenario testing. Ensure that the role configured in the test case has the necessary privileges, such as pxScenarioTestAutomation. Additionally, if you experience JavaScript errors, it may be necessary to address any underlying issues in the application code that could be causing these errors during playback. Following Pega best practices, such as breaking down large test cases into smaller ones, can also help improve consistency in your test suite execution.
Reference : Applying advanced features of scenario tests | Pega Academy