Appium + python automation environment to build 1-

First, prepare the environment

Xiao Bian environment is Windows 7 64-bit version of the system (32 students to think of ways oh)

    1.jdk1.6.0 (64-bit)

    2.android-sdk_r24.3.4-windows

    3.python: 2.7 (3.6 also)

    4.appium: 1.4.13.1

    5.Node.js:node-v4.4.7-x64

    6.Appium-python-client



Two, jdk installation

    1. Download jdk package, small series of 64-bit version 1.6, other advanced version should also be possible. Select the corresponding version of the system according to their own

    2. all the way to fool installation, pay attention to the installation path without spaces, do not have Chinese. jdk and jre do not put a folder

    3. Set the three environment variables, My Computer> select "Properties" -> "Advanced" -> "Environment Variables" -> "System Variables" -> "New"

JAVA_HOME ---- D: \ Java \ jdk1.6.0 "(fill in according to your installation path)

CLASSPATH--- .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;

PATH-----;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

In the path plus two paths above, there is not much to say

    4. Open cmd verify that the installation is successful, the input java -version, enter javac

You can display the version number and the following information to help the installation is successful



Three, android-sdk download and install

    1. Download android-sdk, android to do this is to test and develop the necessary environment, if not download, QQ group: 512 200 893 group files downloaded

    2. After decompression, which has a double-click to open the SDK manager.exe

    3. Check the android version you want to download the corresponding version of the API and, behind the simulator will be used (not downloaded by other simulator can do, or real machine) and then wait for downloads



Four, android-sdk environment variables

    1. In the system new variables: ANDROID_HOME, corresponding to the variable value: D: \ androidsdk \ androidsdk-windows (sdk installation path)

    2.path add two variables, to add the following two file path to path indicated by arrows in

    3.path which added to D: \ androidsdk \ androidsdk-windows \ tools and D: \ androidsdk \ androidsdk-windows \ platform-tools



Five, adb environment

    1. Because adb is in D: After \ androidsdk \ androidsdk-windows \ platform-tools in this directory, so the above adding environment variables, which can be run directly in the cmd.

   2. You can view the version number in the corresponding input adb cmd



Sixth, connect the phone

    1. mobile phone with a data cable connected to the computer, or if the 91 assistants to install what 360 can download the phone drive, make sure your phone can connect to the

    2. Open cmd enter: adb devices, when a string of characters appears on the screen, behind the display devices connected to illustrate the success of (other prompt appears, have to check their environment a)

 If the phone is not connected adb devices:

1, mobile phone connected to the computer - the computer - Device Manager - double click details to view the hardware ID --- --- hardware ID ,

2, in C: \ Users \ YYY \ .android directory, add adb_usb.ini file,

 

 

 

 

Here android test development environment has been installed, the next will teach to build structures appium environment. The installation process encountered a variety of wonderful problem, uninstall finished, read it carefully, starting from the first row, step by step walk down the middle of any environmental problems will lead to the final appium fail.

Guess you like

Origin www.cnblogs.com/youtiaoge/p/11166024.html