WebdriverIO Integration with BrowserStack.
- Clone the repo
- Install dependencies
npm install - You can setup environment variables for all sample repos (see Notes) or update
*.conf.jsfiles inside theconf/directory with your BrowserStack Username and Access Key
- To run a local test on your machine using Chrome, run
npm run test - To run a single test on BrowserStack, run
npm run browserstack-single - To run parallel tests on BrowserStack, run
npm run browserstack-parallel - To run a test accessing a local URL on BrowserStack, run
npm run browserstack-local - To run parallel tests accessing a local URL on BrowserStack, run
npm run browserstack-local-parallel - To run tests on real mobile devices at BrowserStack, run
npm run browserstack-mobile
- To run test using wdio image comparison service on BrowserStack, run
npm run screen-compare
-
You can view your test results on the BrowserStack automate dashboard
-
To test on a different set of browsers, check out our platform configurator
-
You can export the environment variables for the Username and Access Key of your BrowserStack account
export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>