Skip to content

Commit f96a7ab

Browse files
authored
Merge pull request #4 from tejasshah93/master
Include app URL placeholder | update readme
2 parents 66cf869 + 1e00fd1 commit f96a7ab

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# junit-browserstack
1+
# junit-appium-app-browserstack
22
[JUnit](http://junit.org/junit4/) Integration with BrowserStack.
33

44
![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)
@@ -11,13 +11,22 @@
1111
* Update *.conf.json files inside the `src/test/resources/conf` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings).
1212

1313
## 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
1423
* To run a single test, run `mvn test -P single`
1524
* To run parallel tests, run `mvn test -P parallel`
1625
* To run local tests, run `mvn test -P local`
1726

1827
## Notes
1928
* 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
2130
* You can export the environment variables for the Username and Access Key of your BrowserStack account.
2231

2332
```
@@ -26,7 +35,4 @@
2635
```
2736

2837
## 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)

src/test/resources/conf/local.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"browserstack.debug": true,
1010
"browserstack.local": true,
1111
"realMobile": true,
12-
"app": "bs://9a04c63690c3c532341a22a69a916017536ec165"
12+
"app": "bs://<hashed app-id>"
1313
},
1414

1515
"environments": [{

src/test/resources/conf/parallel.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "parallel_appium_test",
99
"browserstack.debug": true,
1010
"realMobile": true,
11-
"app": "bs://d747176bd63686393208fea69d1963ec9c225080"
11+
"app": "bs://<hashed app-id>"
1212
},
1313

1414
"environments": [{

src/test/resources/conf/single.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "single_appium_test",
99
"browserstack.debug": true,
1010
"realMobile": true,
11-
"app": "bs://3fc0a1f5a158e935ad806b97288f4b24e11ebcc4"
11+
"app": "bs://<hashed app-id>"
1212
},
1313

1414
"environments": [{

0 commit comments

Comments
 (0)