Selenium UI Automated tests - dependencies and ordered tests

  • 1 Replies
  • 972 Views
Selenium UI Automated tests - dependencies and ordered tests
« on: March 09, 2016, 13:31:13 pm »
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 ?

Re: Selenium UI Automated tests - dependencies and ordered tests
« Reply #1 on: March 09, 2016, 18:13:37 pm »
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.
« Last Edit: March 10, 2016, 08:21:18 am by Sebastian »

 

Sitemap 1 2 3 4 5 6 7 8