Python Integration with BrowserStack
- Brew (Optional)
- Python3 (Installation notes here)(Recommended Python version 3.6 & 3.7)
- BrowserStack Automate account with at least 4 parallel tests. Signup for a free trial here.
-
Clone the repo
-
Install dependencies
pip3 install -r requirements.txt -
Export the environment variables for the Username and Access Key of your BrowserStack account
export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key> -
To start Local server execute
python -m http.server 8000in the demo folder within terminal
- To run a single test, run
paver run single - To run local tests, run
paver run local - To run parallel tests, run
paver run parallel - To run Appium tests for IOS, run
paver run appium-android - To run Appium tests for Android, run
paver run appium-ios - To run Espresso tests,run
paver run espresso - To run XcuiTest tests,run
paver run xcuitest - To run Earlgrey tests,run
paver run earlgrey
- You can view your test results on the BrowserStack Automate dashboard
- To test on a different set of browsers, check out our platform configurator
