Testing Pega Platform applications
1 Task
30 mins
Pega Platform '24.2
Beginner
Pega Platform '24.2
DevOps
English
Scenario
For an Assistance Request Case, when users enter the vehicle make, one or more associated models should be displayed in the Model drop-down list. Intermittently, users report that some car makes do not have an associated model name in the vehicle information. Additionally, stakeholders are concerned about application performance. To ensure that customers can complete Assistance Request Cases efficiently, stakeholders require that the system generates the vehicle model list within 150 milliseconds.
To meet these requirements, your Deployment Manager has asked you to:
- Create a Unit test to test the vehicle information list and confirm that the model list generates in the time threshold.
- Run a Test Coverage session using the unit test and report the results.
You are asked to complete the following assigned tasks. As a new System Architect, your Lead System Architect provides you with a collection of technical documentation links to help you get started.
The following table provides the credentials you need to complete the challenge:
Role | User name | Password |
---|---|---|
Application Tester | tester@gogoroad | pega123! |
Detailed Tasks
1 Test Pega Platform applications
Read the technical documentation provided to complete the assigned tasks. The technical documentation might have more information than you need.
Acceptance criteria
- Three Unit tests exist for the D_VehicleinformationList Data Page. Each Unit test uses the make and modelyear as the parameter values. For the Unit test make = Tesla and modelyear = 2017, the test should return a result of 3 models.
- Each Unit test asserts that the expected run time of the test is less than 200 miliseconds (0.2 seconds) and that the result count (.pxResults), or number of models returned for each make and modelyear, is greater than 0. The Unit tests are saved to GoGoRoadTesting.
- A Test Coverage session has been run using the Unit tests and the results have been reported.
- The application quality settings include the built-in GoGoRoad application.
Directions
- In the Pega instance for the challenge, enter the following credentials:
- In the User name field, enter tester@gogoroad.
- In the Password field, enter pega123!.
- In Dev Studio, navigate to the Vehicle information Data type and the List Vehicle information (D_VehicleinformationList) Data Page. Using sample values (make: Tesla, modelyear: 2017), run the Data Page and create a Unit test in accordance with the information detailed in the acceptance criteria. Create additional Unit tests for Ford and Saturn.
- Create additional Unit tests for the makes Ford and Saturn using the same 2017 modelyear.
- Configure the Application Quality settings to also include GoGoRoad as a built-on application for test coverage.
- Configure an Application Quality Test Coverage session that uses the Unit tests you created for the D_VehicleinformationList Data Page.
- With the Test Coverage session running, configure the Application Quality Automated Testing Unit Test Cases to display the Unit tests you created. Run the Unit tests as part of the Test Coverage session and view the results.
Confirm your work
- Return to the Application: Test Coverage tab, stop the Test Coverage session, and generate a report.
- View the report for the Test coverage session, which should look similar to the following image:
The Unit Test configuration for Tesla should look similar to the following image:
Your result for the Ford Unit Test should look similar to the following image:
The result of the automated unit testing session should look similar to the following image:
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?