The random run order principle

Random run order is more of a principle than a pattern. It applies to the test execution. This execution is usually performed on a Continuous Integration (CI) environment. The random run order principle states that the order of the test suite execution should be randomized every time the suite is executed. The idea is to flush out instabilities in the test suite by introducing an element of chaos. Any test that has a hidden dependency on another test will eventually fail when the test run order is random.

Note

CI tools are simple applications that execute a given build when certain conditions such as code change are met. There are several commercial tools available, such as TeamCity, Bamboo, and Travis-CI. One of the ...

Get Selenium Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.