Skip to content

Commit 0fd73f3

Browse files
authored
Merge pull request #4 from MukulGupta1/patch-2
TestNg - Readme updated
2 parents 8696eef + 5c3be3b commit 0fd73f3

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

README.md

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,31 @@
22

33
[TestNG](http://testng.org) Integration with BrowserStack.
44

5+
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
6+
57
## Setup
68

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)
1112

12-
### Run the tests
13+
## Running your tests
1314

14-
- To run single test, run `mvn test -P single`
15+
- To run a single test, run `mvn test -P single`
1516
- To run parallel tests, run `mvn test -P parallel`
1617
- To run local tests, run `mvn test -P local`
1718

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
1923

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

Comments
 (0)