Skip to main content

Creating a new scenario test case

1 Task

10 mins

Visible to: All users
Beginner Pega Platform 8.6 DevOps English


GoGoRoad wants to create a standard scenario test to automate testing for the Assistance Request case type. Create an automated test for the Submit request process to ensure that the user interface and end-to-end process flow function correctly.

The following table provides the credentials you need to complete the challenge.

Role User name Password
Application Developer [email protected] pega123!
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.

Challenge Walkthrough

Detailed Tasks

1 Record a new scenario test case

  1. In the header of Dev Studio, click Launch Portal > User Portal to open a new browser tab or window with the user view of the GoGoRoad application.
  2. In the lower right of the screen, click the Runtime toolbar icon, and then click the Automation Recorder icon to open the Scenario tests pane. 
    Scenario testing recorder
  3. In the Scenario tests pane, click Create test case > Case type > Assistant Request to begin recording your actions on a case type.

    Screenshot showing how to start recording a test
  4. In the Create view, in the How can we help you today? drop-down, select My vehicle has a flat tire.

    Note: An orange border is displayed around all objects you interact with to indicate that the Automation Recorder tool is recording the actions you take in this scenario. In the contextual pane, the actions you perform are recorded in the order in which you perform them.
  5. Click Continue to advance to the Enter customer information form.

  6. In the Enter customer information form, in the Account ID drop-down list, select [email protected]
  7. Click Continue.

  8. Complete all fields on the Identify location and Identify vehicle forms.
  9. In the Scenario tests pane, click Stop and save test case to stop recording your actions. 
    Actions taken
  10. In the New test case pane, enter or verify the following information:
    Field or drop-down Value
    Name Initial Customer Request
    Description Initial Customer Request
    Apply to GoGo-GoGoRoad-Work-AssistanceRequest
    Add to ruleset GoGoRoadTC:01-01-01
  11. Click Save to save the new scenario test case.

  12. In the lower-left corner, click the Operator icon > Log off to log out of the User Portal and return to Dev Studio.

Confirm your work

  1. 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. 
  2. In the Scenario testing view, select the Initial Customer Request checkbox.
  3. Click Run selected to execute the test.
    Note: A dialog box displays a preview of the scenario test progress actions as recorded. The dialog box automatically closes when the test is complete.  
    Screenshot showing the scenario test being executed
  4. In the Result column, verify that the result is Passed to signify the test case is successful.

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