You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-32Lines changed: 28 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,55 +2,53 @@
2
2
3
3
This repository demonstrates how to run Appium Python tests on BrowserStack App Automate.
4
4
5
+
## Based on
6
+
7
+
These code samples are currently based on:
8
+
9
+
-**Appium-Python-Client:**`2.6.1`
10
+
-**Protocol:**`W3C`
11
+
5
12
## Setup
6
13
7
14
### Requirements
8
15
9
-
1. Python 3.6+ or Python 2.7+
10
-
11
-
- For Windows, download latest python version from [here](https://www.python.org/downloads/windows/) and run the installer executable
12
-
- For Mac and Linux, run `python --version` to see what python version is pre-installed. If you want a different version download from [here](https://www.python.org/downloads/)
16
+
1. Python 3.7+
13
17
14
-
2. Package Manager pip
18
+
> **_NOTE:_** Since v1.0.0, only Python 3.7+ is supported.
19
+
20
+
- For Windows, download latest python version from [here](https://www.python.org/downloads/windows/) and run the installer executable
21
+
- For Mac and Linux, run `python --version` to see what python version is pre-installed. If you want a different version download from [here](https://www.python.org/downloads/)
15
22
16
-
Note : `pip` comes installed with Python 2.7.9+ and python 3.4+
23
+
2. Package Manager pip
17
24
18
-
- If `pip` is not installed, follow these instructions:
19
-
- Securely download get-pip.py by following this link: [get-pip.py](https://bootstrap.pypa.io/get-pip.py) or use following cURL command to download it:
- If `pip` is not installed, follow these instructions:
24
28
25
-
- After dowloading, run the file :
29
+
- Securely download get-pip.py by following this link: [get-pip.py](https://bootstrap.pypa.io/get-pip.py) or use following cURL command to download it:
To install the dependencies, run the following commandin project's base directory:
42
46
43
47
- For Python 3
44
48
45
-
```sh
46
-
pip3 install -r requirements.txt
47
-
```
48
-
49
-
- For Python 2
50
-
51
-
```sh
52
-
pip2 install -r requirements.txt
53
-
```
49
+
```sh
50
+
pip3 install -r requirements.txt
51
+
```
54
52
55
53
## Getting Started
56
54
@@ -72,7 +70,6 @@ Ensure that @ symbol is prepended to the file path in the above request. Please
72
70
73
71
**Note**: If you do not have an .apk or .ipa file and are looking to simply try App Automate, you can download and test using our [sample Android app](https://www.browserstack.com/app-automate/sample-apps/android/WikipediaSample.apk) or [sample iOS app](https://www.browserstack.com/app-automate/sample-apps/ios/BStackSampleApp.ipa).
74
72
75
-
76
73
**2. Configure and run your first test**
77
74
78
75
Open `browserstack_sample.py` file in `Android` or `iOS` folder :
@@ -107,7 +104,6 @@ Ensure that @ symbol is prepended to the file path in the above request. Please
107
104
108
105
**Note**: If you do not have an .apk or .ipa file and are looking to simply try App Automate, you can download and test using our [sample Android Local app](https://www.browserstack.com/app-automate/sample-apps/android/LocalSample.apk) or [sample iOS Local app](https://www.browserstack.com/app-automate/sample-apps/ios/LocalSample.ipa).
109
106
110
-
111
107
**2. Configure and run your local test**
112
108
113
109
Open `browserstack_sample_local` file in `Android` or `iOS` folder :
@@ -118,7 +114,7 @@ Open `browserstack_sample_local` file in `Android` or `iOS` folder :
118
114
119
115
- Set the device and OS version
120
116
121
-
- Ensure that `browserstack.local` capability is set to `true`. Within the test script, there is code snippet that automatically establishes Local Testing connection to BrowserStack servers using Python binding for BrowserStack Local.
117
+
- Ensure that `local` capability is set to `true`. Within the test script, there is code snippet that automatically establishes Local Testing connection to BrowserStack servers using Python binding for BrowserStack Local.
122
118
123
119
- If you have uploaded your own app update the test case
0 commit comments