Performing Pega scenario testing
2 Tasks
15 mins
Pega Platform 8.7
Beginner
DevOps
English
Scenario
A member service representative needs to perform the following actions for an Assistance Request application:
- Add a new household using the case type.
- Add persons to the newly added household.
- Tag a location to the household.
As an application developer, you need to create an automated test for the Add Household process to ensure that the UI and end-to-end process flow correctly. In this challenge, perform the following tasks:
- Open the Scenario tests pane from the Manager Portal.
- Record and save a scenario test for the Add Household case type.
- Run the created scenario test from the scenario testing landing page of Dev studio.
- Analyze the results of the scenario test.
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| Application Developer | pgpTester | rules123! |
Note: Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.
Detailed Tasks
1 Open the Scenario testing pane and record a test case
- Log in to the Dev Studio as the Application Developer with User name pgpTester and Password rules123!
- In the header of Dev Studio, click Launch Portal > Manager to open a new browser tab of the user view of the Assistance Request application.
- In the lower-right corner of the screen, click the Toggle runtime toolbar icon.
- In the toolbar, click the Toggle Automation Recorder icon to open the Scenario tests pane on the right.
- In the Scenario tests pane, click Create test case > Case type > Add household to record your actions on a new case type.
- On the Household form, complete the household details:
- in the Household name field, enter Jeff's House.
- In the Household type list, select Family.
- In the Dwelling type list, select
- In the Start date field, select today's date.
Note: An orange highlight box is displayed around all objects you interact with to indicate that the Automation Recorder tool records all the actions you take in this scenario.
- Confirm that, as you capture the household details, the steps are recorded in the Scenario tests pane.
- Click .
- Click to submit the case.
- In the Scenario tests pane, click to end the recording.
- In the New test case window, in the Name field, enter Add new household.
- Ensure that the Apply to class is PegaPS-Work-Entity-Household-Add.
- Click to display the list of test cases and view the newly created test case in the list.
2 Run a scenario test on Application: Scenario testing landing page
- In the list of test cases, click the Add new household case to open the case and display the , , and modes.
- Click to execute the test case.
- In the upper-right corner of the portal, click the user icon, and then select Log off to log out of the User portal and return to Dev Studio.
- In the header of Dev Studio, click Configure > Application > Quality > Automated testing > Scenario testing > Test cases to view the list of test cases for the application.
- On the Application: Scenario testing landing page, select the AddNewHousehold checkbox for the test case.
- Click Run selected to execute the test.
Note: A dialog box displays a preview of the recorded actions of the scenario test. The dialog box automatically closes when the test is complete.
- In the lower-left corner, click the user icon, and then select Log off to exit Dev Studio.
Available in the following mission:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?