Skip to content

Latest commit

 

History

History

device-allocation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

WebdriverIO Real Device Allocation

This folder contains a set up for WebdriverIO on how to allocate devices on the Sauce Labs Real Device Cloud (Unified Platform). Two simple test files are executed on a mobile Chrome or Safari browser.
Please check the configuration file here to see all possible options. There is a reference link to Real Device Testing Capabilities which can also be found here.

The wdio-sauce-service will take care of:

  • connecting to the correct Data Center
  • updating the tests with the correct status

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/appium-web/examples/device-allocation when you execute this command

Run tests on Sauce Labs

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