README.md 1.79 KB
Newer Older
Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
1
# webdriverio-browserstack
Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
2
[WebdriverIO](http://webdriver.io/) UI Testing og Dataporten Auth Engine
Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
3 4 5 6 7

![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)

<img src = "http://webdriver.io/images/webdriverio.png" height = "100">

Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
8 9 10



Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
## Setup
* Clone the repo
* Install dependencies `npm install`
* 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 a single test, run `npm run single`
- To run local tests, run `npm run local`
- To run parallel tests, run `npm run parallel`

 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/node#setting-os-and-browser)
* You can export the environment variables for the Username and Access Key of your BrowserStack account
Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
27

Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
28 29 30 31
  ```
  export BROWSERSTACK_USERNAME=<browserstack-username> &&
  export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
  ```
Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
32

Andreas Åkre Solberg's avatar
Andreas Åkre Solberg committed
33 34 35 36 37
## 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)