https://github.com/browserstack/webdriverio-browserstack
Selenium examples for WebDriverIO and BrowserStack Automate
https://github.com/browserstack/webdriverio-browserstack
Last synced: 12 months ago
JSON representation
Selenium examples for WebDriverIO and BrowserStack Automate
- Host: GitHub
- URL: https://github.com/browserstack/webdriverio-browserstack
- Owner: browserstack
- Created: 2016-03-01T08:35:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-11-19T02:59:46.000Z (over 1 year ago)
- Last Synced: 2025-03-28T16:09:26.425Z (12 months ago)
- Language: JavaScript
- Homepage: https://www.browserstack.com
- Size: 607 KB
- Stars: 67
- Watchers: 18
- Forks: 93
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# webdriverio-browserstack
[WebdriverIO](http://webdriver.io/) Integration with BrowserStack.


## Setup
* Clone the repo
* Install dependencies `npm install`
* You can setup environment variables for all sample repos (see Notes) or update `*.conf.js` files inside the `conf/` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings)
## Running your tests
- To run parallel tests, run `npm run test`
- To run local test, run `npm run local`
Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
## Notes
* You can view your test results on the [BrowserStack automate dashboard](https://www.browserstack.com/automate)
* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/capabilities)
* You can export the environment variables for the Username and Access Key of your BrowserStack account
```sh
export BROWSERSTACK_USERNAME= &&
export BROWSERSTACK_ACCESS_KEY=
```
## Additional Resources
* [Documentation for writing automate test scripts in Node](https://www.browserstack.com/automate/node)
* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities)
* [Browsers & mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate)
* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api)