Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Running tests using cloud providers

Tests can easily be run using different cloud providers and it's possible to generate a JUnit XML report with the results on a per test basis.

Both in BrowserStack and in Sauce Labs backoffice only a session/test will appear though.


To run them in the cloud using BrowserStack, the command line would be something like this (BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables would need to be defined beforehand):

No Format
testcafe "browserstack:Chrome@66.0:Windows 10" test1.js test2.js --reporter xunit > results.xml


Image Added


To run them in the cloud using Sauce Labs, the command line would be something like this (SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables would need to be defined beforehand):

No Format
testcafe "saucelabs:Chrome@66.0:Windows 10" test1.js test2.js --reporter xunit > results.xml


Image Added

References

...