Playwright with PyTest Test runner Integration with BrowserStack.
- Python3
- 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.ymlfile. - You can also set the credentials in BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables.
- 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
- You can view your test results on the BrowserStack Automate dashboard
