This repository demonstrates how to run Appium Python tests on BrowserStack App Automate.
These code samples are currently based on:
- Appium-Python-Client:
2.6.1 - Protocol:
W3C
-
Python 3.7+
NOTE: Since v1.0.0, only Python 3.7+ is supported.
-
Package Manager pip
Note :
pipcomes installed with 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
-
-
To install the dependencies, run the following command in project's base directory:
-
For Python 3
pip3 install -r requirements.txt
Getting Started with Appium tests in Python on BrowserStack couldn't be easier!
Open Android or iOS folder :
-
If you have uploaded your app then add the app id to the
browserstack.ymlconfig file, or you can directly specify the path to your app in thebrowserstack.ymlfile. -
Run
browserstack-sdk python browserstack_sample.py -
You can access the test execution results, and debugging information such as video recording, network logs on App Automate dashboard
Open Android or iOS folder :
-
Ensure that
browserstackLocalcapability is set totruein thebrowserstack.ymlfile -
If you have uploaded your app then add the app id to the
browserstack.ymlconfig file, or you can directly specify the path to your app in thebrowserstack.ymlfile. -
Run
browserstack-sdk python browserstack_sample_local.py -
You can access the test execution results, and debugging information such as video recording, network logs on App Automate dashboard
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.