{"id":51528813,"url":"https://github.com/browserstack/nightwatch-appium-app-browserstack","last_synced_at":"2026-07-09T00:31:53.977Z","repository":{"id":270388973,"uuid":"844814960","full_name":"browserstack/nightwatch-appium-app-browserstack","owner":"browserstack","description":"This repository demonstrates how to run Appium tests in Nightwatch on BrowserStack App Automate.","archived":false,"fork":false,"pushed_at":"2026-06-19T13:16:34.000Z","size":66113,"stargazers_count":0,"open_issues_count":4,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-06-19T15:14:26.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":"LICENSE","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-08-20T02:52:57.000Z","updated_at":"2026-06-19T13:10:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"888f3118-bb46-4434-a9fb-332d77cfcf94","html_url":"https://github.com/browserstack/nightwatch-appium-app-browserstack","commit_stats":null,"previous_names":["browserstack/nightwatch-appium-app-browserstack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/browserstack/nightwatch-appium-app-browserstack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-appium-app-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-appium-app-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-appium-app-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-appium-app-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/nightwatch-appium-app-browserstack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-appium-app-browserstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35282897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2026-07-09T00:31:53.123Z","updated_at":"2026-07-09T00:31:53.971Z","avatar_url":"https://github.com/browserstack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nightwatch-appium-app-browserstack\nThis repository demonstrates how to run Appium tests in Nightwatch on BrowserStack App Automate.\n\n[Nightwatch](http://nightwatchjs.org/) Integration with BrowserStack.\n\n\u003cimg src =\"http://nightwatchjs.org/img/logo-nightwatch.png\" height = \"110\"\u003e \u003cimg src =\"https://d13vhgz95ul9hy.cloudfront.net/blog/wp-content/uploads/2018/03/BrowserStack.png\" height = \"110\"\u003e\n\n## Setup\n\n- Clone the repo\n- Install the dependencies using `npm install`\n- Export the environment variables for the Username and Access Key of your BrowserStack account, which you can get directly from the app automate dashboard\n\n  ```\n  export BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e \u0026\u0026\n  export BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n  ```\n\n\n## Running your tests\n\n- To run a single android test, run `npm run single-android`\n- To run a single ios test, run `npm run single-ios`\n- To run local tests, run `npm run local`\n\nPlease run the above tests once before running parallel tests, so that the apps can be uploaded on the respective [custom id](https://www.browserstack.com/docs/app-automate/appium/upload-app-define-custom-id).\n- To run parallel tests, run `npm run parallel`\n- To run parallel tests on different devices, run `npm run parallel-devices`\n- To run test suite, run `npm run suite`\n- To run parallel local tests, run `npm run parallel-local`\n\n\nUnderstand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)\n\n## Notes\n\n- You can view your test results on the [BrowserStack app automate dashboard](https://app-automate.browserstack.com/)\n- To test on a different set of browsers, check out our [capabilities generator](https://www.browserstack.com/app-automate/capabilities)\n\n\n## Connecting to BrowserStack via a proxy server\n\nYou can specify proxy settings in Nightwatch by adding the `proxy` key in your `*.conf.js`\n\n```javascript\n  test_settings: {\n    default: {\n      desiredCapabilities: {\n        // Your capabilities\n      },\n      proxy: {\n        \"host\": \"\",     // \"127.0.0.1\"\n        \"port\": \"\",     // \"8081\"\n        \"protocol\": \"\"  // \"http\"\n      }\n    }\n  }\n```\n\n## Browserstack Test Observability\n\nTest Observability is a reporting tool that helps you isolate the genuine test failures after eliminating noise from flaky and always failing tests and also helps with root cause analysis of failed tests.\n\nWith Test Observability, you can not only complete your run verification in minutes, you will also be empowered with rich historical data to understand the overall health of your test suites, uncover burning issues impacting the stability of your tests, and help you optimize your tests.\n\nYou can learn more about [what the product has to offer and why you should be using it](https://www.browserstack.com/docs/test-observability/overview/what-is-test-observability).\n\nPlease add the following code snippet to your **nightwatch.conf.js**.\n```js\n module.exports = {\n    //...\nplugins: ['@nightwatch/browserstack'],\n'@nightwatch/browserstack': {\n    test_observability: {\n    enabled: true,\n    user: process.env.BROWSERSTACK_USERNAME,\n    key: process.env.BROWSERSTACK_ACCESS_KEY,\n    projectName: \"Enter Static Project Name Here\",\n    buildName: \"Enter Static Project Name Here\",\n    buildTag: [\"Custom Tag 1\",\"Custom Tag 2\"]\n    }\n   \n  },\n    //...\n  };\n```\nTo get started with the Test Observability integration with your Nightwatch Project, please refer to this [documentation](https://www.browserstack.com/docs/test-observability/quick-start/nightwatch).\n\n## Additional Resources\n\n- [Documentation for writing app automate test scripts in Node](https://www.browserstack.com/docs/app-automate/appium/getting-started/nodejs)\n- [Customizing your tests on BrowserStack](https://www.browserstack.com/app-automate/capabilities)\n- [Browsers \u0026 mobile devices for selenium 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%2Fnightwatch-appium-app-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fnightwatch-appium-app-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fnightwatch-appium-app-browserstack/lists"}