The first step
Install JDK, this installation step can be ignored if the environment variable is configured with version 1.7 and above.
JDK installation package, Baidu download can. Configure environment variables after installation is complete.
CMD to verify that the environment variable is configured successfully
Step Two
Installing the Android SDK (the Android software Development Kit), testing the Android phone must be to install the Android SDK.
: http://tools.android-studio.org/index.php/sdk/(Download zip version directly, unzip to any directory)
Unzip to any folder, unzip the folder into the environment variable, add environment variables, you must create a variable named Android_home.
Double-click SDK Manager, Optional tool. Must install: Tools folder under Android SDK Platform-tools and Android SDK build-tools,android SDK tools can choose whether to update, recommended Internet speed OK to update directly.
Add the Android_home, tools, Platform-tools, build-tools directories to the PATH environment variable.
Once the environment variable is configured, you will need to find an Android phone, connect the Android phone, and turn on the Android phone developer option-usb Debug.
Executed under CMD, ADB devices, the appearance of style is represented by the ADB command, to obtain the Udid connected to the Android phone on the computer.
Step Three
Installing node. js, because the server side of Appium was written by node. js, you need to install node. JS first. After installing node. js, you can install Appium directly from NPM. (Note: NPM is similar to a Python pip, an unofficial package manager)
official:https://nodejs.org/en/download/
Download different versions of node. JS based on your operating system
node. JS installs all the way to the idiot next, notice that the path is changed, and the environment variable is added automatically when the installation is successful. That is, you can use the NPM command in any directory under CMD.
After the installation is successful, detect if NPM is available.
Fourth Step
Install the Appium server, which can be installed by entering NPM install-g Appium under CMD. (The installation process is slow, please wait patiently)
If NPM install-g Appium is extremely slow and cannot be downloaded, you can use the internal image npm--registry http://registry.cnpmjs.org install-g appium
Install if failure can attempt to install Appium via CNPM
Installing CNPM with npm command
NPM install-g cnpm--registry=https://registry.npm.taobao.org
Installing Appium via CNPM
CNPM install-g Appium--no-cache
After the installation is successful, view the current Appium version via Appium-v, and directly enter Appium to start the Appium server side.
Fifth Step
Installs the Appium client, which is used to crawl location information on the app.
Address: https://github.com/appium/appium-desktop/releases/tag/v1.2.1
Double-click the installation, the desktop will have a appium shortcut after successful installation.
All the environments that windows-android-appium here have been built.
Mobile Automation ==>windows-android-appium Environment construction