https://github.com/browserstack/pytest-playwright-browserstack
Creating a sample repo for different Playwright languages and runners
https://github.com/browserstack/pytest-playwright-browserstack
Last synced: 11 months ago
JSON representation
Creating a sample repo for different Playwright languages and runners
- Host: GitHub
- URL: https://github.com/browserstack/pytest-playwright-browserstack
- Owner: browserstack
- Created: 2022-12-08T06:52:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-26T17:39:36.000Z (about 1 year ago)
- Last Synced: 2025-04-22T21:06:39.557Z (11 months ago)
- Language: Python
- Size: 32.2 KB
- Stars: 2
- Watchers: 11
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# pytest-playwright-browserstack
Playwright with PyTest Test runner Integration with BrowserStack.

## Prerequisite
* Python3
## Setup
* Clone the repo
* Install dependencies `pip install -r requirements.txt`
* To run your automated tests using BrowserStack, you must provide a valid username and access key. This can be done adding your userName and accesKey in the `browserstack.yml` file.
* You can also set the credentials in BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables.
## Run sample tests
* To run tests, run `browserstack-sdk pytest -s tests/sample-test.py`
* To run local tests, run `browserstack-sdk pytest -s tests/sample-local-test.py`.
## Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github)
## Notes
* You can view your test results on the [BrowserStack Automate dashboard](https://www.browserstack.com/automate)