A test of browserstack using pytest. This is derived from Browserstack's Pytest Demo
- Python3 with Pip and venv
- Clone the repo with
git clone -b sdk https://github.com/kentonself/brsrstck.git
- It is recommended to use a virtual environment to install dependencies. To create a virtual environment:
python3 -m venv env source env/bin/activate # on Mac or Linux env\Scripts\activate # on Windows
- 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 either by providing your username and access key in the
browserstack.yml
configuration file, or by setting theBROWSERSTACK_USERNAME
andBROWSERSTACK_ACCESS_KEY
environment variables. Additionally the user login and password for automate.browserstack.com are kept inBSTACK_USER
andBSTACK_PASSWORD
- To run the test in the configuration file run:
browserstack-sdk pytest -s tests/test.py
- You can view your test results on the BrowserStack Automate dashboard
- To test on a different set of browsers, check out our platform configurator