I. Appium installation
- Installing Nodejs
- Select the latest version in the https://nodejs.org/download/and select the version that is appropriate for your system download
- After downloading the installation, open cmd and enter node-v to check Nodejs version to see if there is a successful installation
- Installing Appium
- Installing Appium with NPM
Open the cmd window and enter NPM install-g appium to install
- Officially recommended this way to install appium, usually this way to download will be slower, so here I use a Baidu network disk download link to download http://pan.baidu.com/s/1jGvAISu.
Here i download is the newest appium-desktop-setup-1.2.7.exe to install, also can download appiumforwindows_1.4.16.1.zip this kind of compress package to install (because I see is 15, not newest, it is useless this way )
- After installation is the case, the default host is 0.0.0.0,port is 4723
- Click Start Server v1.7.1 to launch
Two. Install the Android development environment
- Installing the Java Environment
- Download directly from the JDK website: http://www.oracle.com/technetwork/java/javase/downloads/ jdk8-downloads-2133151.html download is jdk-8u162.windows-x64.exe, then install in E:\Program files\java\jdk1.8.0_162\ Click Next installation is complete
- Configuring Java Environment variables
- Open "My Computer"-"Properties"-"advanced"-"Environment variables"-"System variables"-Create a new variable named java_home, variable value Configure the address of the Java installation
Variable name: java_home
Variable Value: E:\Program files\java\jdk1.8.0_162
- Create a new variable named Class_path, and the value of the variable is configured to install the Java file address under Lib
Variable name: Class_path
Variable value:%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
- In the PATH variable-"edit", add the address of the Java post-installation bin
Variable name: Path
Variable value:%java_home%\bin;%java_home%\jre\bin;
- Open the cmd window and enter Java and Javac to verify that the installation was successful
- Installing the Android SDK
- This is the Android SDK tool in http://www.androiddevtools.cn/, and you can download other tools.
- This way, this machine's directory is E:\android-sdk_r24.4.1-windows\android-sdk-windows.
- New Android_home variable in "My Computer"-"Properties"-"advanced"-"Environment variables"-"System Variables", the value of which is the address of the Android SDK
Variable name: android_home
Variable Value: E:\android-sdk_r24.4.1-windows\android-sdk-windows
- Click "Edit" in the path variable name to add the address of the Android tools
Variable name: Path
Variable value:%android_home%\platform-tools;%android_home%\tools;
- SDK Manager Installation Simulator
- Open the SDK Manager, and then download the tools in tools that it downloads by default
- Then the Android side of the selection is 7.0 under the tool to come down
- Then enter ADB in the CMD window to verify that the installation was successful
- Open AVD Manager
- Click Create.
- After selecting the parameters, click OK
- Then click Start .... Open the emulator to
Appium Environment Construction