PyTest with Browserstack
PyTest Integration with BrowserStack.
Setup
- Clone the repo
- Install dependencies
pip install -r requirements.txt
- Update
.browserstack
files with your BrowserStack Username and Access Key
Running your single tests
- To run single tests, run
pytest --driver BrowserStack --variables config/capabilities1.json
Running your parallel tests
- To run parallel tests, run
paver run parallel
Understand how many parallel sessions you need by using our Parallel Test Calculator
Notes
- You can view your test results on the BrowserStack Automate dashboard
- To test on a different set of browsers, check out our platform configurator