TestProject Forum
Powered by leading experts in the test automation community

Selenium UI Automated tests - dependencies and ordered tests

Is it possible to run UI Automated tests in an ordered manner ?
Or perhaps create dependencies for some tests to be executed only after other tests have run their course ?

I’m not sure about running tests in an ordered way. But creating dependencies for tests is generally not beneficial. The whole reason you’d want to keep tests independent is to prevent one failure from hiding a second failure.

You could however extract common lines of code from 2 tests to another method to reduce code duplication, But running that same code for each test is inevitable.