Table of Contents

Delay the execution of a step within a test and rerun failed scenario tests for enhanced scenario test stability (8.5)

Pega Platform scenario tests have been enhanced with usability improvements to reduce the flakiness of tests. Flaky tests can sometimes result in stable builds failing because of external factors, for example, a UI that is slow to render.

You can now delay the execution of a step within a scenario test to add latency to a web browser and actions on a web page. This prevents tests from failing when when there is complex processing or UI rendering in the current step.The following figure shows an example of how to add wait time to a step when recording a scenario test.

Adding wait time to a step
"Adding wait time to a step"
Adding wait time to a step

You can also automatically rerun failed scenario tests, up to a maximum of two times. Scenario tests might fail because of  temporal stability issues on the environment or because the application UI is slow to render. The following figure shows where to specify this setting in the Application: Quality Settings window.

If a test passes on the first rerun, the system does not run the test again for a second time.
Rerunning failed scenario tests
"Rerunning failed scenario tests"
Rerunning failed scenario tests

For more information, see the following:

Suggest Edit

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.