{"id":21944744,"url":"https://github.com/browserstack/pytest-browserstack","last_synced_at":"2025-04-22T21:06:55.941Z","repository":{"id":44174581,"uuid":"458049211","full_name":"browserstack/pytest-browserstack","owner":"browserstack","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-03T13:53:19.000Z","size":64,"stargazers_count":2,"open_issues_count":3,"forks_count":18,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-04-22T21:06:46.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-02-11T04:47:56.000Z","updated_at":"2024-12-07T13:48:43.000Z","dependencies_parsed_at":"2024-03-28T17:58:35.328Z","dependency_job_id":"e452a7e7-99a8-4224-99a6-1ab97eccf7f8","html_url":"https://github.com/browserstack/pytest-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%2Fpytest-browserstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fpytest-browserstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fpytest-browserstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fpytest-browserstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/pytest-browserstack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324688,"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:00.540Z","updated_at":"2025-04-22T21:06:55.919Z","avatar_url":"https://github.com/browserstack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyTest with Browserstack\n\nPyTest Integration with BrowserStack using SDK.\n\n![BrowserStack Logo](https://d98b8t1nnulk5.cloudfront.net/production/images/layout/logo-header.png?1469004780)\n## Prerequisite\n* Python3\n\n## Setup\n\n* Clone the repo with `git clone -b sdk https://github.com/browserstack/pytest-browserstack.git`\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\n  env\\Scripts\\activate # on Windows\n  ```\n* Install dependencies `pip install -r requirements.txt`\n* To run your automated tests using BrowserStack, you must provide a valid username and access key. This can be done either by providing your username and access key in the `browserstack.yml` configuration file, or by setting the `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` environment variables.\n\n## Run sample test in parallel:\n* To run the sample test across platforms defined in the configuration file run:\n```\n  browserstack-sdk pytest -s tests/bstack-sample-test.py\n```\n\n## Run a sample local test:\n* To run the sample local test across platforms defined in the configuration file, you just need to set `browserstackLocal` key as true in the `browserstack.yml` file and run:\n```\n  browserstack-sdk pytest -s tests/bstack-local-test.py\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/automate/python#setting-os-and-browser)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fpytest-browserstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fpytest-browserstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fpytest-browserstack/lists"}