Skip to main content

Performing Pega scenario testing

2 Tasks

15 mins

Pega Platform 8.7
Visible to: All users
Beginner Pega Platform 8.7 DevOps English

Scenario

A member service representative needs to perform the following actions for an Assistance Request application:

  • Add a new household using the Add Household 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:

  1. Open the Scenario tests pane from the Manager Portal.
  2. Record and save a scenario test for the Add Household case type.
  3. Run the created scenario test from the scenario testing landing page of Dev studio.
  4. 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.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Detailed Tasks

1 Open the Scenario testing pane and record a test case

  1. Log in to the Dev Studio as the Application Developer with User name pgpTester and Password rules123!
  2. 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.  
  3. In the lower-right corner of the screen, click the Toggle runtime toolbar icon.
  4. In the toolbar, click the Toggle Automation Recorder icon to open the Scenario tests pane on the right.
     
    Image depicts the Toggle Automation Recorder icon to open the Scenario tests pane.
  5. In the Scenario tests pane, click Create test case > Case type > Add household to record your actions on a new case type.
     
    Image depicts the creation of scenario test for a case type.
  6. On the Household form, complete the household details:
    1. in the Household name field, enter Jeff's House
    2. In the Household type list, select Family.
    3. In the Dwelling type list, select 
    4. In the Start date field, select today's date.
      image depicts the recording of the UI.
      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.
  7. Confirm that, as you capture the household details, the steps are recorded in the Scenario tests pane.
     
    image depicts the formation of test case steps.
  8. Click Continue.
  9. Click Submit to submit the case.
  10. In the Scenario tests pane, click Stop and save the test case to end the recording.
     
    Image depicts the stop and save of a test case.
  11. In the New test case window, in the Name field, enter Add new household.
  12. Ensure that the Apply to class is PegaPS-Work-Entity-Household-Add.
     
    Image depicts the save of a test case.
  13. Click Save 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

  1. In the list of test cases, click the Add new household case to open the case and display the Run, Edit, and Debug modes.
  2. Click Run to execute the test case.
  3. 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.
  4. 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. 
  5. On the Application: Scenario testing landing page, select the AddNewHousehold checkbox for the test case.
  6. Click Run selected to execute the test.
    Image depicts the execution of a test case from the landing page.
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. 
  1. In the lower-left corner, click the user icon, and then select Log off to exit Dev Studio.

Confirm your work

  1. Confirm that, after the test case runs in Dev Studio, the result is displayed on the Application: Scenario testing landing page.
    Image depicts the result formation of a test case.
  2. In the Result column, click Passed to view the details.
    Image depicts the result details of a test case.
    Note:  If the test case fails with an error, the details of the step number and reason for the failure are displayed in the results card. You can view these details on the User portal and Dev Studio.
  3. 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.

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 Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice