This repository demonstrates how to run Appium tests using Python on BrowserStack App Automate.
-
Python 3.6+ or Python 2.7+
-
Package Manager
pipNote :
pipcomes installed with Python 2.7.9+ and python 3.4+-
If
pipis not installed, follow these instructions:- Securely download get-pip.py by following this link: get-pip.py or use following cURL command to download it:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
-
After dowloading, run the file :
-
For Python 3
python3 get-pip.py
-
For Python 2
python2 get-pip.py
-
-
To install the dependencies for Android tests, run :
-
For Python 3
pip3 install -r android/requirements.txt
-
For Python 2
pip2 install -r android/requirements.txt
Or,
To install the dependencies for iOS tests, run :
-
For Python 3
pip3 install -r ios/requirements.txt
-
For Python 2
pip2 install -r ios/requirements.txt
Getting Started with Appium tests in Python on real BrowserStack devices couldn't be easier!
-
Switch to
run-first-testdirectory under Android examples or iOS examples -
Follow the steps outlined in the documentation Getting Started with your first test on App Automate
-
Switch to
run-prarallel-testsdirectory under Android examples or iOS examples -
Follow the steps outlined in the documentation Getting Started with Parallel testing on App Automate
-
Switch to
run-local-testdirectory under Android examples or iOS examples -
Follow the steps outlined in the documentation Getting Started with Local testing on App Automate
Note: If you face any issues, refer Getting Help section
For other Python frameworks samples, refer to following repositories :
Note: For other test frameworks supported by App-Automate refer our Developer documentation
If you are running into any issues or have any queries, please check Browserstack Support page or get in touch with us.