This folder contains a simple set up for WebdriverIO and the power of Sauce Front-End Performance. More information can be found here.
There are two ways to retrieve/assert the performance data:
- During the testing, see `front.end.performance.spec.js
- When the test is done. This can be retrieved through an API call, see
wdio.saucelabs.conf.js
for the explanation.
You can install all dependencies by running the following command
npm install
This will install all needed dependencies that are listed in the package.json
-file
NOTE: Make sure you are in the folder
webdriverio/webdriver/examples/peformance
when you execute this command
Please read the information about Sauce Front-End Performance before using it.
- The test examples as shown here will only work with Chrome
NOTE: When the tests are done the performance data-files can be found in the
.tmp/performanceReport/
-folder.
You can run your tests on Sauce Labs US DC with this command
npm run test.saucelabs.us
You can run your tests on Sauce Labs EU DC with this command
npm run test.saucelabs.eu