{"id":21944753,"url":"https://github.com/browserstack/testng-appium-app-browserstack","last_synced_at":"2025-04-05T19:10:11.471Z","repository":{"id":43699464,"uuid":"99221800","full_name":"browserstack/testng-appium-app-browserstack","owner":"browserstack","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-20T02:24:44.000Z","size":90133,"stargazers_count":32,"open_issues_count":13,"forks_count":75,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-29T18:06:49.573Z","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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-03T10:38:57.000Z","updated_at":"2025-03-21T04:57:20.000Z","dependencies_parsed_at":"2024-11-20T09:50:29.963Z","dependency_job_id":"4e1e197b-39a2-4a40-82fb-0acef983bfb7","html_url":"https://github.com/browserstack/testng-appium-app-browserstack","commit_stats":{"total_commits":82,"total_committers":21,"mean_commits":"3.9047619047619047","dds":0.8048780487804879,"last_synced_commit":"594796a669c18d1b456721b0ddf6a68a0b1b3735"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Ftestng-appium-app-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Ftestng-appium-app-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Ftestng-appium-app-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Ftestng-appium-app-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/testng-appium-app-browserstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247386262,"owners_count":20930619,"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:02.714Z","updated_at":"2025-04-05T19:10:11.464Z","avatar_url":"https://github.com/browserstack.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testng-appium-app-browserstack\n\nThis repository demonstrates how to run Appium tests in [TestNG](http://testng.org) on BrowserStack App Automate using BrowserStack SDK.\n\n![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)\n\n## Setup\n\n### Requirements\n\n1. Java 8+\n\n    - If Java is not installed, follow these instructions:\n        - For Windows, download latest java version from [here](https://java.com/en/download/) and run the installer executable\n        - For Mac and Linux, run `java -version` to see what java version is pre-installed. If you want a different version download from [here](https://java.com/en/download/)\n\n2. Maven (Only required if using Maven as the build tool)\n   - If Maven is not downloaded, download it from [here](https://maven.apache.org/download.cgi)\n   - For installation, follow the instructions [here](https://maven.apache.org/install.html)\n\n3. Gradle (Only required if using Gradle as the build tool)\n  - If Gradle is not downloaded, download it from [here](https://gradle.org/releases/)  \n  - For installation, follow the instructions [here](https://gradle.org/install/) \n\n### Install the dependencies\n\nTo install the dependencies for Android tests, run :\n```sh\ncd android/testng-examples\nmvn clean\n```\n\nOr,\n\nTo install the dependencies for iOS tests, run :\n\n```sh\ncd ios/testng-examples\nmvn clean\n```\n\n## Getting Started\n\nGetting Started with Appium tests in TestNg on BrowserStack couldn't be easier!\n\n### **Run Sample test :**\n\n- Switch to one of the following directories: [Android examples](android/testng-examples) or [iOS examples](ios/testng-examples)\n- **For Maven:** Run the following command to execute tests in the Maven environment:  \n    ```sh\n    mvn test -P sample-test\n    ```\n- **For Gradle:** Run the following command to execute tests in the Gradle environment:  \n    ```sh\n    gradle clean sampleTest\n    ```\n\n### **Use Local testing for apps that access resources hosted in development or testing environments :**\n\n- Simply configure the `browserstackLocal` parameter in the `browserstack.yml` file accordingly in [Android examples](android/testng-examples) or [iOS examples](ios/testng-examples).\n  ```\n  browserstackLocal: true\n  ```\n- You can use the `LocalSample` app provided in both folder [Android examples](android/testng-examples) or [iOS examples](ios/testng-examples) to run your test. Change the app parameter in the `browserstack.yml` file.\n\n- **For Maven:** Run the following command to execute tests in the Maven environment:  \n    ```sh\n    mvn test -P sample-local-test\n    ```\n- **For Gradle:** Run the following command to execute tests in the Gradle environment:  \n    ```sh\n    gradle clean sampleLocalTest\n    ```\n\n-similarly for gradle you can do :- gradle clean sampleLocalTest\n\n\n**Note**: If you are facing any issues, refer [Getting Help section](#Getting-Help)\n\n## Integration with other Java frameworks\n\nFor other Java frameworks samples, refer to following repositories :\n\n- [JUnit](https://github.com/browserstack/junit-appium-app-browserstack)\n- [Java](https://github.com/browserstack/java-appium-app-browserstack)\n\nNote: For other test frameworks supported by App-Automate refer our [Developer documentation](https://www.browserstack.com/docs/)\n\n## Getting Help\n\nIf you are running into any issues or have any queries, please check [Browserstack Support page](https://www.browserstack.com/support/app-automate) or [get in touch with us](https://www.browserstack.com/contact?ref=help).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Ftestng-appium-app-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Ftestng-appium-app-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Ftestng-appium-app-browserstack/lists"}