Skip to main content

Creating a new scenario test case

Archived

2 Tasks

10 mins

Visible to: All users
Beginner Pega Platform 8.4 DevOps English
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded.

Scenario

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 author@gogoroad pega123!

Challenge Walkthrough

Detailed Tasks

1 Record a new scenario test case

  1. In the Dev Studio header, click Launch Portal > Case Worker to open new browser with the user view of the GoGoRoad application.
  2. Click the Runtime toolbar icon > Automation Recorder to open the Scenario tests pane.  
    scenario_recorder
  3. In the Scenario tests pane, click Create test case > Portal to begin recording your actions.

    Screenshot showing how to start the scenario recorder.
  4. In the Case Worker navigation pane, click New > Assistance Request.

    Screenshot to show how to start a new case with a recording.
    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. In the Create view, in the Service type drop-down, select Flat tire.
  6. Click Done to advance to the Enter customer information form.
    new-create-assistance-request
  7. On the Enter customer information form, from the Account ID drop-down, select [email protected].
    Screenshot showing selecting of customer.
  8. Click Continue.
  9. Complete all fields on the Identify location and Identify vehicle forms.
  10. In the Scenario tests pane, click Stop and save test case to stop recording your actions.
    Screenshot showing actions taken on the portal being recorded.
  11. In the Scenario tests pane, complete 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
  12. Click Save to save the new scenario test case.
    Screenshot displaying the criteria for saving a scenario recording.

 

2 Confirm your work

  1. In the Dev Studio header, click Configure > Application > Quality > Automated testing > Scenario testing > Test cases to view the list of test cases for the application. 
  2. On the Scenario testing view, to the left of the Initial Customer Request test case, select the check box.
  3. Click Run selected to execute the test.
    Screenshot showing how to run scenario 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.
    Screenshot showing successful scenario test.


Available in the following mission:

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