|
1 | | -# junit-browserstack |
| 1 | +# junit-appium-app-browserstack |
2 | 2 | [JUnit](http://junit.org/junit4/) Integration with BrowserStack. |
3 | 3 |
|
4 | 4 |  |
|
11 | 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). |
12 | 12 |
|
13 | 13 | ## Running your tests |
| 14 | +* Upload your Native App (.apk file) to BrowserStack servers using upload API: |
| 15 | + |
| 16 | + ``` |
| 17 | + curl -u "username:accesskey" -X POST "https://api.browserstack.com/app-automate/upload" -F "file=@/path/to/app/file/Application-debug.apk" |
| 18 | + ``` |
| 19 | + |
| 20 | +* 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) |
| 21 | +to the BrowserStack servers using the above API. |
| 22 | +* Update the desired capability "app" with the App URL returned from the above API call |
14 | 23 | * To run a single test, run `mvn test -P single` |
15 | 24 | * To run parallel tests, run `mvn test -P parallel` |
16 | 25 | * To run local tests, run `mvn test -P local` |
17 | 26 |
|
18 | 27 | ## Notes |
19 | 28 | * You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate) |
20 | | -* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/automate/java#setting-os-and-browser) |
| 29 | +* Refer [Get Started](https://www.browserstack.com/app-automate/get-started#getting-started) document to configure the capabilities |
21 | 30 | * You can export the environment variables for the Username and Access Key of your BrowserStack account. |
22 | 31 |
|
23 | 32 | ``` |
|
26 | 35 | ``` |
27 | 36 |
|
28 | 37 | ## Addtional 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