Note: Appium installs to C drive, node. JS installs to C drive
I. Installing node. js
1, to the official website download node.js:https://nodejs.org/en/download/
2, get to the installation file, directly double-click the installation file, according to the program prompts, complete the installation of Nodejs.
3, after the installation is complete, run cmd, enter Node–v, if the installation is successful, will output the following version information:
Second, configure the Android SDK environment
1. SDK environment configuration:http://www.cnblogs.com/puresoul/p/4597211.html
2. Ensure that version API with level 17 or above is installed
3. Set the Android_home system variable to your ANDROID SDK path
F:\Program Files (x86) \ANDROID\ANDROID-SDK
4. Add tools and Platform-tools two directories to the path of the system
; F:\Program Files (x86) \android\android-sdk\platform-tools; F:\Program Files (x86) \android\android-sdk\tools
Third, install the mobile phone driver and test the connection to the real machine
After you complete the above steps, to enable the phone to connect to the PC side for the real machine test. You will also need to install the driver for your test phone. Download the appropriate offline driver and install it according to the phone model, then connect the phone to the PC via USB cable. Enter the following command in CMD, if you can see the device, it means that the installation was successful.
iv. installation of Appium
1. Download the installation file:https://bitbucket.org/appium/appium.app/downloads/
2. Directly double-click the Appium-installer.exe file to install, the desktop will generate a appium icon
3. Place the Node_modules Bin directory in the path of the system
C:\Program Files (x86) \appium\node_modules\.bin
4. Check if the environment required for the appium is OK:
Enter cmd command line, enter Appium-doctor, the following prompt appears, all Checks were successful, indicating that the environment is successful.
Appium Environment Building (Windows edition)