One, about JDK installation, and the settings of the Java environment
1, download JDK1.6, select the corresponding installation path
2. Configure the appropriate Java environment variables
A, attribute name: Java_home (installation directory of the SDK)
Property value: C:Program filesjavajdk1.6.0_02
B, attribute name: PATH
Attribute value:;%java_home%\bin;%java_home%\jre\bin
C, attribute name: CLASSPATH
Attribute value:.; %java_home%libdt.jar;%java_home%libtools.jar
To Add. Represents the current path, in addition,%java_home% refers to the Java_home specified earlier
6. Test on whether the environment variable is installed successfully
"Start"->; " Run, type "cmd";
Type the command command, and a screen appears stating that the environment variable is configured successfully:
A, java-version;
B, Java;
C, Javac;
Attention:
Javac settings not successful, use full name; c:programfilesjavajdk1.6.0_02==%java_home%
; C:Program Filesjavajdk1.6.0_02\bin; C:programfilesjavajdk1.6.0_02\jre\bin;
Installation and environment variable configuration of Android SDK
Configuring ANDRIOD environment variables is a prerequisite to installing the Java environment first.
1, download the Android SDK, click Install, direct default path can!
: http://developer.android.com/sdk/index.html
2. After the default path is installed, the installation is complete and the environment variable is started.
3. Turn on the computer properties--Advanced system settings--environment variables
4. Create a new environment variable, variable name: android_home, Variable Value: D:\ADT-BUNDLE-WINDOWS-X86_64-20140702\SDK (whichever is the installation directory), click Confirm.
5, add the variable value after the user variable path;%android_home%\platform-tools; click Confirm.
Or add in the system variable path; D:\adt-bundle-windows-x86_64-20140702\sdk\tools
6, the Android SDK configuration is complete, and then verify that the configuration is successful.
7, click Run-Enter cmd--carriage return-Enter adb--, if a bunch of English, that is, the configuration is successful, in the input Android, start Androidsdk Manager.
Third, Appium download and install
Appium Official website: http://appium.io/
1, install node. js. node. JS Official website: https://nodejs.org/(here I install with Windows 7 (64) as an example)
A, the default settings can be installed.
B, after the installation is complete, open the Windows command prompt, enter Node–v, if the installation is successful, output version information
C, NPM is a node package management and Distribution tool, has become the unofficial Release Node module (package) standard. With NPM, you can quickly find the packages you want to use for a particular service, download, install, and manage the packages you have installed.
2, download Appium_install.exe and install by default;
3, enter the command: Appium-doctor, the appearance of all Checks were successful after the installation succeeds;
4, set the Appium environment variable. Add Appium_home with a value of Appium installation directory: E:\ProgramFiles\Appium\node_modules\.bin
Add the following path; E:\Program Files\appium\node_modules\.bin
Iv. 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 adbdevices command in CMD and if you can see the device, it means the installation was successful.
V. Installation of virtualbox+genymotion
VirtualBox official website Download: https://www.virtualbox.org/wiki/Downloads
Genymotion Official website: https://www.genymotion.com/download/
https://testerhome.com/topics/680
C:\users\administrator\appdata\roaming\npm\appium-> C:\Users\Administrator\AppD
Ata\roaming\npm\node_modules\appium\build\lib\main.js
Appium+android Studio installation and configuration