https://github.com/browserstack/espresso-browserstack
https://github.com/browserstack/espresso-browserstack
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/browserstack/espresso-browserstack
- Owner: browserstack
- Created: 2018-02-07T12:56:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-28T10:26:20.000Z (over 2 years ago)
- Last Synced: 2025-04-22T21:06:35.831Z (11 months ago)
- Language: Java
- Size: 14.4 MB
- Stars: 4
- Watchers: 8
- Forks: 35
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# espresso-browserstack
[Espresso](https://developer.android.com/training/testing/espresso/index.html) Integration with BrowserStack


## Setup
* Clone the repo
* Download JDK8 from [here](https://www.oracle.com/in/java/technologies/javase/javase-jdk8-downloads.html)
* Update your JDK location via Project Structure (Android Studio)
* Go to File > Project Structure.
* Select the SDK Location section in the list of the left.
* Enter the absolute path of your installed JDK in the text box.
* Build the main application: `./gradlew assemble` (apk will be generated in the `app/build/outputs/apk/debug/` directory)
* Build the test application: `./gradlew assembleAndroidTest` (apk will be generated in the `app/build/outputs/apk/androidTest/debug/` directory)
* Upload both the apk files to BrowserStack and start a session. Refer our documentation for details: [Using Espresso with BrowserStack](https://www.browserstack.com/app-automate/espresso/get-started)
## Notes
* You can view your test results on the [BrowserStack app-automate dashboard](https://www.browserstack.com/app-automate)
## Additional Resources
* [Customizing your tests on BrowserStack](https://www.browserstack.com/app-automate/capabilities)
* [Browsers & mobile devices for app-automate testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=app_automate)
* [Using REST API to access information about your builds via the command-line interface](https://www.browserstack.com/app-automate/rest-api)
* [Using Espresso with BrowserStack](https://www.browserstack.com/app-automate/espresso/get-started)
* [Generating JUnit XML report or Test coverage report using Espresso with BrowserStack](https://www.browserstack.com/docs/app-automate/espresso/view-test-reports).
example:
curl -u "< username >:< password >" \
-X POST "https://api-cloud.browserstack.com/app-automate/espresso/v2/build" \
-d '{"app": "bs://", "testSuite": "bs://", "devices": ["Google Pixel-8.0"], "coverage": true, "debugscreenshots": true }' \
-H "Content-Type: application/json"