|
2 | 2 |
|
3 | 3 | [TestNG](http://testng.org) Integration with BrowserStack.
|
4 | 4 |
|
| 5 | + |
| 6 | + |
5 | 7 | ## Setup
|
6 | 8 |
|
7 |
| -- Clone the repo |
8 |
| -- Install dependencies `mvn compile` |
9 |
| -- Update `*.conf.json` files inside the `src/test/resources/conf` directory with your BrowserStack Username and Access Key. (These can be found in the [settings](https://www.browserstack.com/accounts/settings) section on BrowserStack accounts page) |
10 |
| -- Alternatively, 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>` |
| 9 | +* Clone the repo |
| 10 | +* Install dependencies `mvn compile` |
| 11 | +* Update `*.conf.json` files inside the `src/test/resources/conf` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) |
11 | 12 |
|
12 |
| -### Run the tests |
| 13 | +## Running your tests |
13 | 14 |
|
14 |
| -- To run single test, run `mvn test -P single` |
| 15 | +- To run a single test, run `mvn test -P single` |
15 | 16 | - To run parallel tests, run `mvn test -P parallel`
|
16 | 17 | - To run local tests, run `mvn test -P local`
|
17 | 18 |
|
18 |
| -### Notes |
| 19 | +## Notes |
| 20 | +* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate) |
| 21 | +* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/java#setting-os-and-browser) |
| 22 | +* You can export the environment variables for the Username and Access Key of your BrowserStack account |
19 | 23 |
|
20 |
| -- In order to test on different set of browsers, check out our [code generator](https://www.browserstack.com/automate/python#setting-os-and-browser) |
| 24 | + ``` |
| 25 | + export BROWSERSTACK_USERNAME=<browserstack-username> && |
| 26 | + export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key> |
| 27 | + ``` |
| 28 | +## Additional Resources |
| 29 | +* [Documentation for writing Automate test scripts in Java](https://www.browserstack.com/automate/java) |
| 30 | +* [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities) |
| 31 | +* [Browsers & mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate) |
| 32 | +* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/automate/rest-api) |
0 commit comments