Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

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

Updated on May 3, 2021

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.

"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.

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

For more information, see the following:

  • Previous topic Extend PegaUnit setup and cleanup capabilities using custom fixtures (8.6)
  • Next topic Avoid duplicating application test efforts by merging test coverage reports (8.5)

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us