{"id":21944871,"url":"https://github.com/browserstack/espresso-browserstack","last_synced_at":"2025-04-22T21:06:40.383Z","repository":{"id":39852446,"uuid":"120615101","full_name":"browserstack/espresso-browserstack","owner":"browserstack","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-28T10:26:20.000Z","size":15055,"stargazers_count":4,"open_issues_count":5,"forks_count":35,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-22T21:06:35.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/browserstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-07T12:56:05.000Z","updated_at":"2024-03-04T16:16:58.000Z","dependencies_parsed_at":"2023-02-16T04:20:29.605Z","dependency_job_id":null,"html_url":"https://github.com/browserstack/espresso-browserstack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fespresso-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fespresso-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fespresso-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fespresso-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/espresso-browserstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324689,"owners_count":21411946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-29T04:17:18.624Z","updated_at":"2025-04-22T21:06:40.354Z","avatar_url":"https://github.com/browserstack.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# espresso-browserstack\n\n[Espresso](https://developer.android.com/training/testing/espresso/index.html) Integration with BrowserStack\n\n![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)\n\n\u003cimg src =\"https://developer.android.com/images/training/testing/espresso.png\" height = \"300\"\u003e\n\n## Setup\n\n* Clone the repo\n* Download JDK8 from [here](https://www.oracle.com/in/java/technologies/javase/javase-jdk8-downloads.html)\n* Update your JDK location via Project Structure (Android Studio)\n    * Go to File \u003e Project Structure.\n    * Select the SDK Location section in the list of the left.\n    * Enter the absolute path of your installed JDK in the text box.\n* Build the main application: `./gradlew assemble` (apk will be generated in the `app/build/outputs/apk/debug/` directory)\n* Build the test application: `./gradlew assembleAndroidTest` (apk will be generated in the `app/build/outputs/apk/androidTest/debug/` directory)\n* 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)\n\n## Notes\n* You can view your test results on the [BrowserStack app-automate dashboard](https://www.browserstack.com/app-automate)\n\n## Additional Resources\n* [Customizing your tests on BrowserStack](https://www.browserstack.com/app-automate/capabilities)\n* [Browsers \u0026 mobile devices for app-automate testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=app_automate)\n* [Using REST API to access information about your builds via the command-line interface](https://www.browserstack.com/app-automate/rest-api)\n* [Using Espresso with BrowserStack](https://www.browserstack.com/app-automate/espresso/get-started)\n* [Generating JUnit XML report or Test coverage report using Espresso with BrowserStack](https://www.browserstack.com/docs/app-automate/espresso/view-test-reports). \n   example:  \n   curl -u \"\u003c username \u003e:\u003c password \u003e\" \\\n   -X POST \"https://api-cloud.browserstack.com/app-automate/espresso/v2/build\" \\\n   -d '{\"app\": \"bs://\u003capp_id\u003e\", \"testSuite\": \"bs://\u003ctest_suite_id\u003e\", \"devices\": [\"Google Pixel-8.0\"], \"coverage\": true, \"debugscreenshots\": true }' \\\n   -H \"Content-Type: application/json\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fespresso-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fespresso-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fespresso-browserstack/lists"}