|
1 |
| -# testng-browserstack |
| 1 | +# testng-appium-app-browserstack |
2 | 2 |
|
3 | 3 | [TestNG](http://testng.org) Integration with BrowserStack.
|
4 | 4 |
|
|
12 | 12 |
|
13 | 13 | ## Running your tests
|
14 | 14 |
|
| 15 | +- Upload your Native App (.apk file) to BrowserStack servers using upload API: |
| 16 | + |
| 17 | + ``` |
| 18 | + curl -u "username:accesskey" -X POST "https://api.browserstack.com/app-automate/upload" -F "file=@/path/to/app/file/Application-debug.apk" |
| 19 | + ``` |
| 20 | + |
| 21 | +- If you do not have an .apk file and looking to simply try App Automate, [you can download our sample app and upload](https://www.browserstack.com/app-automate/sample-apps/android/WikipediaSample.apk) |
| 22 | +to the BrowserStack servers using the above API. |
| 23 | +- Update the desired capability "app" with the App URL returned from the above API call |
15 | 24 | - To run a single test, run `mvn test -P single`
|
16 | 25 | - To run parallel tests, run `mvn test -P parallel`
|
17 | 26 | - To run local tests, run `mvn test -P local`
|
18 | 27 |
|
19 | 28 | ## Notes
|
20 | 29 | * 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) |
| 30 | +* Refer [Get Started](https://www.browserstack.com/app-automate/get-started#getting-started) document to configure the capabilities |
22 | 31 | * You can export the environment variables for the Username and Access Key of your BrowserStack account
|
23 | 32 |
|
24 | 33 | ```
|
25 | 34 | export BROWSERSTACK_USERNAME=<browserstack-username> &&
|
26 | 35 | export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
|
27 | 36 | ```
|
28 | 37 | ## 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) |
| 38 | +* [Getting Started with App Automate](https://www.browserstack.com/app-automate/get-started) |
0 commit comments