{"id":21944852,"url":"https://github.com/browserstack/nightwatch-browserstack","last_synced_at":"2025-04-05T01:07:16.611Z","repository":{"id":5160096,"uuid":"52860814","full_name":"browserstack/nightwatch-browserstack","owner":"browserstack","description":"Selenium examples for Nightwatch and BrowserStack Automate","archived":false,"fork":false,"pushed_at":"2025-03-09T00:30:18.000Z","size":333,"stargazers_count":78,"open_issues_count":18,"forks_count":63,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-29T00:09:54.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.browserstack.com","language":"JavaScript","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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-01T08:30:17.000Z","updated_at":"2025-03-08T05:27:49.000Z","dependencies_parsed_at":"2025-01-16T01:08:29.544Z","dependency_job_id":"23677c47-91a2-48c6-91a4-799361bf663e","html_url":"https://github.com/browserstack/nightwatch-browserstack","commit_stats":{"total_commits":95,"total_committers":19,"mean_commits":5.0,"dds":0.8421052631578947,"last_synced_commit":"758f388fe98d6b0674c6fe59cfcf9f401aef1113"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fnightwatch-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/nightwatch-browserstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271530,"owners_count":20911587,"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:16.165Z","updated_at":"2025-04-05T01:07:16.593Z","avatar_url":"https://github.com/browserstack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nightwatch-browserstack\n\n[Nightwatch](http://nightwatchjs.org/) Integration with BrowserStack.\n\n![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)\n\n\u003cimg src =\"http://nightwatchjs.org/img/logo-nightwatch.png\" height = \"110\"\u003e\n\n## Setup\n\n- Clone the repo\n- Install dependencies `npm install`\n- You can export the environment variables for the Username and Access Key of your BrowserStack account\n\n  ```\n  export BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e \u0026\u0026\n  export BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n  ```\n\n## Running your tests\n\n- To run tests, run `npm run sample-test`\n- To run local tests, run `npm run sample-local-test`\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 automate dashboard](https://automate.browserstack.com)\n- To test on a different set of browsers, check out our [capabilities generator](https://www.browserstack.com/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## Additional Resources\n\n- [Documentation for writing automate test scripts in Node](https://www.browserstack.com/docs/automate/selenium/getting-started/nodejs)\n- [Customizing your tests on BrowserStack](https://www.browserstack.com/automate/capabilities)\n- [Browsers \u0026 mobile devices for selenium testing on BrowserStack](https://www.browserstack.com/list-of-browsers-and-platforms?product=automate)\n- [Using REST API to access information about your tests via the command-line interface](https://www.browserstack.com/docs/automate/api-reference/selenium/introduction)\n- [Example to update the Browserstack session status based on the test results](https://github.com/blueimp/nightwatch-browserstack)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fnightwatch-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fnightwatch-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fnightwatch-browserstack/lists"}