1) Install Appium
2) SDK (it is not recommended to use the simulator, the memory is very large, it will cause the machine to lag.) There are compatibility issues with the emulator: PC for x86 architecture, most mobile phones are ARM architecture, app compatibility will be problematic)
- Official https://android-sdk.en.softonic.com/
- After the installation is complete:
- Install the emulator (skip this step with a real machine)
- Start the emulator (skip this step with a real machine)
|
|
|
|
|
Create a new simulator, then start the simulator |
3) Check the Appium environment
|
A. Enter D:\Program Files (x86) \appium\node_modules\.bin (depending on the path you have installed) |
|
b.shift+ Right-click |
|
|
|
C. appium-doctor command |
|
|
|
D. Viewing results (environment variable exceptions will be prompted) |
|
|
|
Seeing the results above proves that the environment is well established. |
4) for the simulator settings can see this link: http://www.cnblogs.com/fnng/p/4560298.html
5) Install Selenium
|
I. Description: Appium is inherited from selenium. |
|
II. Operation: Direct input pip install selenium under cmd |
|
Note: The selenium version currently has 2.* and 3.*, there is not much difference, if the version of 3.* need to note that Firefox driver need to download additional |
6) Install the Python-appium client.
|
I strongly recommend the use of the online installation mode: There are two advantages
A. Ensure the latest
B. Easy installation |
|
II Installation Method:
CMD Direct input pip install Appium-python-client |
|
|
|
III Check if the installation is successful. Pip Show Appium-python-client |
The above is the environmental construction steps.
Appium Use Tutorial (one environment)-------------2. Install deployment