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 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.
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.
For more information, see the following: