One: Install node. js
1. Double-click the software
2,One-click Installation, all next, do not change the installation path privately
3.Open cmd, enter npm, appear below to indicate success
Two: Install Appium
1. double-click appium-installer.exe
2, a key installation, all next, do not change the installation path, remember the installation path, remember to check the creation of desktop shortcuts, part omitted.
3, double-click the desktop appium icon, the following error occurred,
One-click Installation
Restart Appium, the following error occurred
One-click Installation
Start Appium again, the following appears, indicating that the appium installation was successful
4. Add appium. bin path under PATH system variable
C:\Program Files (x86) \appium\node_modules\.bin
Three: Install Java
1. double-click java
Appear as:
2. Click Next to remember the JDK installation path
3. Here you can click Next:
4, Click Close, to this has ended. the JDK is already installed.
5, after installation is the following two folders
Four: Configuring the JDK environment
1. Configure environment variables after installation of JDK computer → system Properties → advanced system settings → advanced → environment variables .
2, click Environment variables, system variables → new java_home variable. Variable value fill in the JDK installation directory ( mine is C:\Program files\java\jdk1.8.0_101)
3. system variable → find Path variable → edit
in the variable value most Front input %java_home%\bin;%java_home%\jre\bin; (the first reason is to prevent other variables from interfering)
4. system variables → new CLASSPATH variable
variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar ( Note that there is a point in the front )
System Variable Configuration complete
5, Check whether the configuration is successfully run cmd input java-version (there are spaces between Java and-version )
if the version information is displayed , the installation and configuration are successful.
Five: Install Android SDK
1. Open
2, set the Android environment variable , note that the following variable value is my variable value, you set the variable value according to your own android-sdk-windows file path
Variable Name: Android_home
Variable Value : D:\appium\android-sdk-windows
set path system variable
Variable Name: PATH
variable value:%android_home%\platform-tools;%android_home%\tools;
Six: SDK Manager Installation simulator
1, Double-click Launch SDK Manager.exe ,SDK Manager.exe under Android-sdk-windows.
2. Click Tools, click Options
set the relevant parameters, then click Close
After the update is the following
Drag down to choose Android4.4.2, select All, uncheck the rest, then click Install Packages.
Then click on Accept License, then click Install
It is then downloaded and automatically installed
The installation process will be error-
But it doesn't matter, we repeat the above several steps, until all the installation success, see below
VII: install SDK platform-tools
1. put the platform-tools in the android-sdk-windows folder
2, open platform-tools, see inside has adb.exe, put adb.exe path environment variable. That is , add a new D:\appium\android-sdk-windows\platform-toolsto the back of path , and notice that you want to add a ;
3. Open cmd and enter appium-doctor. Appears as follows to show that the environment is building successfully
Eight: Install Python
1. Double-click
2, One-click installation, note The Python installation path, and then in the system variable path under the new python installation path
mine is. C:\Python\Python36-32
3, open cmd, enter python, appears as follows, indicating that the installation was successful.
4. Install pip
CMD down into the C:\Python\Python36-32\pip-9.0.1, (note this is my path)
Enter python setup.py install
then put C:\Python\Python36-32\Scripts below the path system environment variable
Open cmd input pip, which appears as follows, indicating successful installation
5, cmd under the input pip install Appium-python-client, appears as follows, installation success
Nine: first automated script preparation
1. launch android simulator
2. Click Crete
3, Set the parameters, click OK
4, still click OK
5. Click Start
6. Click Launch
7. Success
Build Appium+python document under Win7