Skip to content

Latest commit

 

History

History

performance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

WebdriverIO and Sauce Front-End Performance

This folder contains a simple set up for WebdriverIO and the power of Sauce Front-End Performance. More information can be found here.

Getting performance data

There are two ways to retrieve/assert the performance data:

  1. During the testing, see `front.end.performance.spec.js
  2. When the test is done. This can be retrieved through an API call, see wdio.saucelabs.conf.js for the explanation.

Install dependencies

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

Important information

Please read the information about Sauce Front-End Performance before using it.

  • The test examples as shown here will only work with Chrome

Run tests on Sauce Labs

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