DevExpress / testcafe-browser-provider-saucelabs

This is the Sauce Labs browser provider plugin for TestCafe.
https://devexpress.github.io/testcafe/
MIT License
31 stars 41 forks source link

Running tests sequentially #41

Closed dimaip closed 5 years ago

dimaip commented 5 years ago

I want to run our testsuite across multiple browsers version (e.g. "saucelabs:safari,saucelabs:chrome"), but I need all tests to run sequentially, in order to not abuse our backend. Is it possible to do so in one command, or I'd have to split it into multiple testcafe launches?

dimaip commented 5 years ago

Another related question is if it's possible to know from inside testcafe test script which browser it's currently running or any other info from the build. The trick is that in order to be able to run the tests in parallel we need to login each parallel test run under a different backend account, and I could use the browser version to randomize the login.

AndreyBelym commented 5 years ago
  1. Yes, you can split invoke testcafe multiple times if you want to run tests in different browser sequentially:

    testcafe saucelabs:chrome tests && testcafe saucelabs:firefox tests
  2. Until t.browserInfo is implemented, you can use the workaround from this comment: https://github.com/DevExpress/testcafe/issues/481#issuecomment-477033099

Also, since we try to keep our Github repositories for bug reports and feature suggestions only, please consider creating a new question next time.

dimaip commented 5 years ago

Got it, sorry. :heart:

AndreyBelym commented 5 years ago

Don't worry and feel free to contact us if you have any questions 😄