{"id":21944726,"url":"https://github.com/browserstack/mstest-appium-app-browserstack","last_synced_at":"2026-02-16T14:31:13.664Z","repository":{"id":237578670,"uuid":"793903270","full_name":"browserstack/mstest-appium-app-browserstack","owner":"browserstack","description":"Sample Repo for running Appium Sessions using MSTest Framework","archived":false,"fork":false,"pushed_at":"2025-12-31T06:13:51.000Z","size":35342,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2026-01-04T08:43:20.346Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-30T04:59:05.000Z","updated_at":"2025-12-31T06:13:55.000Z","dependencies_parsed_at":"2024-11-21T15:41:57.996Z","dependency_job_id":null,"html_url":"https://github.com/browserstack/mstest-appium-app-browserstack","commit_stats":null,"previous_names":["browserstack/mstest-appium-app-browserstack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/browserstack/mstest-appium-app-browserstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fmstest-appium-app-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fmstest-appium-app-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fmstest-appium-app-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fmstest-appium-app-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/mstest-appium-app-browserstack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fmstest-appium-app-browserstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29494497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T00:00:57.352Z","status":"ssl_error","status_checked_at":"2026-02-15T23:56:34.338Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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:16:57.233Z","updated_at":"2026-02-16T14:31:13.643Z","avatar_url":"https://github.com/browserstack.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MSTest-appium-app-browserstack\n\nThis sample elaborates the [MSTest](https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-mstest) Integration with BrowserStack.\n\n\u003cimg src=\"assets/browserstack.png\" width=30 height=30\u003e \u003cimg src=\"assets/MSTest.png\" width=50 height=25\u003e \n\n\u003e To perform tests using SDK, please checkout the sdk branch\n\n## Setup\n\n### Installation Steps\n\n1. Clone the repository.\n2. Open the solution `mstest-appium-app-browserstack.sln` in Visual Studio.\n3. Install dependencies using NuGet Package Manager:\n    ```bash\n    dotnet restore\n    ```\n4. Build the solution\n\n### Adding Credentials\n\n1. Add your BrowserStack Username and Access Key to the `Config/*.json` files in the project. \n   \n    ```json\n    {\n        \"userName\": \"BROWSERSTACK_USERNAME\",\n        \"accessKey\": \"BROWSERSTACK_ACCESS_KEY\",\n    }\n    ```\n\n2. Alternatively, you can set environment variables given below. Note that the creds supplied in the config json files above, takes precedence over environment variables. In order to use env variables, remove the `userName` and `accessKey` from the config json files altogether.\n    - `BROWSERSTACK_USERNAME`\n    - `BROWSERSTACK_ACCESS_KEY`\n\nYou can get your browserstack credentials from [here](https://www.browserstack.com/accounts/profile/details)\n\n### Uploading App\n\n- Upload the app using the Browserstack [REST API](https://www.browserstack.com/docs/app-automate/appium/upload-app-from-filesystem).\n\n- The response contains the app hashed id:\n    ```json\n    {\n        \"app_url\": \"bs://\u003capp_hashed_id\u003e\"\n    }\n    ```\n- Paste this app hashed id to the corresponding config file. For Example: The sample android app used for Android Single Test can be found [here](https://github.com/browserstack/mstest-appium-app-browserstack/blob/sdk/Android/WikipediaSample.apk). Upload the app and paste the hashed id [here](https://github.com/browserstack/mstest-appium-app-browserstack/blob/main/Android/Config/SingleTest.json#L5).\n\n### Running Tests\n\n- To run tests, execute the following command:\n    ```bash\n    dotnet test\n    ```\n\n- To run tests on Android/iOS, provide `\u003cos\u003e` to the below command. Where os can take either of two values: `Android` or `iOS`.\n    ```bash\n    dotnet test \u003cos\u003e\n    ```\n\n- To run the single test, execute the following command:\n    ```bash\n    dotnet test \u003cos\u003e --filter SingleTest\n    ```\n\n- To run tests in parallel, execute the following command:\n    ```bash\n    dotnet test \u003cos\u003e --filter ParallelTest\n    ```\n\n- To run local tests, execute the following command:\n    ```bash\n    dotnet test \u003cos\u003e --filter LocalTest\n    ```\n\nUnderstand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/app-automate/parallel-calculator?ref=github)\n\n## Notes\n* You can view your test results on the [BrowserStack automate dashboard](https://www.browserstack.com/app-automate)\n* To test on a different set of devices or build a set of appium capabilities, use our [Capability Builder](https://www.browserstack.com/app-automate/capabilities?tag=w3c)\n* You can export the environment variables for the Username and Access Key of your BrowserStack account\n\n  * For Unix-like or Mac machines:\n  ```\n  export BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e \u0026\u0026\n  export BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n  ```\n\n  * For Windows Cmd:\n  ```\n  set BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e\n  set BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n  ```\n\n  * For Windows Powershell:\n  ```\n  $env:BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e\n  $env:BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n  ```\n\n## Additional Resources\n* [Documentation for writing automate playwright test scripts in C#](https://www.browserstack.com/docs/app-automate/appium/getting-started/c-sharp)\n* [Capability Builder for App Automate](https://www.browserstack.com/app-automate/capabilities)\n* [Real Mobile devices for Appium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms/app_automate)\n* [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/docs/app-automate/api-reference/introduction)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fmstest-appium-app-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fmstest-appium-app-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fmstest-appium-app-browserstack/lists"}