Skip to content

Commit be8d7e6

Browse files
authored
Merge pull request #2 from tejasshah93/clean_repo
Include app URL placeholder | Update readme
2 parents c0e4dd0 + c46ecf0 commit be8d7e6

File tree

5 files changed

+16
-10
lines changed

5 files changed

+16
-10
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# testng-browserstack
1+
# testng-appium-app-browserstack
22

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

@@ -12,21 +12,27 @@
1212

1313
## Running your tests
1414

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

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

2433
```
2534
export BROWSERSTACK_USERNAME=<browserstack-username> &&
2635
export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>
2736
```
2837
## 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)

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": {

src/test/resources/conf/suite.conf.json

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

1414
"environments": {

0 commit comments

Comments
 (0)