{"id":21944796,"url":"https://github.com/browserstack/behave-browserstack","last_synced_at":"2025-04-22T21:07:52.739Z","repository":{"id":54886982,"uuid":"55582240","full_name":"browserstack/behave-browserstack","owner":"browserstack","description":"Selenium examples for Behave and BrowserStack Automate","archived":false,"fork":false,"pushed_at":"2024-07-03T15:30:19.000Z","size":40,"stargazers_count":14,"open_issues_count":1,"forks_count":29,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-22T21:07:41.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.browserstack.com","language":"Python","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":"2016-04-06T06:46:19.000Z","updated_at":"2024-07-03T15:30:20.000Z","dependencies_parsed_at":"2023-02-08T09:45:35.059Z","dependency_job_id":null,"html_url":"https://github.com/browserstack/behave-browserstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fbehave-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fbehave-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fbehave-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fbehave-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/behave-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:08.853Z","updated_at":"2025-04-22T21:07:52.713Z","avatar_url":"https://github.com/browserstack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# behave-browserstack\n\n[Behave](https://github.com/behave/behave) Integration with BrowserStack.\n\n![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)\n\n## Prerequisite\n```\npython3 should be installed\n```\n\n## Setup\n* Clone the repo \n  ```\n  git clone -b sdk https://github.com/browserstack/behave-browserstack.git\n  ```\n* It is recommended to use a virtual environment to install dependencies. To create a virtual environment:\n  ```\n  python3 -m venv env\n  source env/bin/activate # on Mac/Linux\n  env\\Scripts\\activate # on Windows\n  ```\n* Install dependencies \n  ```\n  pip install -r requirements.txt\n  ```\n\n## Set BrowserStack Credentials\n* Add your BrowserStack username and access key in the `browserstack.yml` config fle.\n* You can also export them as environment variables, `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY`:\n  #### For Linux/MacOS\n    ```\n    export BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e\n    export BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n    ```\n  #### For Windows\n    ```\n    set BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e\n    set BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n    \n    setx BROWSERSTACK_USERNAME=\u003cbrowserstack-username\u003e\n    setx BROWSERSTACK_ACCESS_KEY=\u003cbrowserstack-access-key\u003e\n    ```\n\n## Running tests\n\n* To run sample tests:\n  - To run the sample tests in parallel across the platforms defined in the `browserstack.yml` file, run:\n    ```\n    browserstack-sdk behave features/test.feature\n    ```\n* To run tests on locally hosted websites:\n  - To run the local test in parallel across the platforms defined in the `browserstack.yml` file, run:\n    ```\n    browserstack-sdk behave features/local-test.feature\n    ```\n\n## Notes\n* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)\n* To test on a different set of browsers, check out our [platform configurator](https://www.browserstack.com/docs/automate/selenium/sdk-config-generator)\n* Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)\n\n## Additional Resources\n* [Documentation for writing Automate test scripts in Python](https://www.browserstack.com/automate/python)\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/automate/rest-api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fbehave-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fbehave-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fbehave-browserstack/lists"}