Appium Installation Tutorials
Time: 2014-12-11-10:34 Author: Seven months Source: 51Testing Software test Network editing
Font: Small medium size | Previous post Next | Print | I want to contribute | Recommended Tags: Appium Automated testing framework for mobile automation tools
first, the applicable operating system Win7 Ultimate SP1 64-bit OS or 32-bit operating system
Second, the required softwareJdk-7u45-windows-i586.exe Node-v0.10.28-x86.msi (32-bit): http://nodejs.org/download/ Adt-bundle-windows-x86-20140321.zip sdk:http://developer.android.com/sdk/index.html Apache-ant-1.9.4-bin.zip (non-mandatory ) http://ant.apache.org/bindownload.cgi Apache-maven-3.1.1-bin.zip (non-mandatory) http://maven.apache.org/download.cgi Activepython-2.7.5.6-win32-x86.msi
third, installation steps1) Install the JDK and configure the environment variable the JDK installation is simple and can be installed by default. Environment variable configuration: Add Java_home variable, value: JDK installation path, such as: D:\Java\jdk1.7.0_45 add Classpath variable, value.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar Modify the path variable, plus this sentence%java_home%\bin; Check
JAVAThe environment is configured, enter the cmd command line, enter Java or JAVAC, you can see a lot of command prompt, indicating success. 2) Install node. js, which is installed by default and can change the installation path. After the installation is complete, check that the node version installation is successful: Enter cmd, enter node-v, you can see the version number, indicating success. 3) Install ADT, configure environment variables: Http://developer.android.com/sdk/index.html?hl=sk download adt-bundle-windows-x86-20140321.zip, directly decompression can. Configure the environment variable, set the android_home system variable to your
AndroidSDK path, and add tools and platform-tools two directories to the system's path path. Variable name: Android_home value: D:\AutoTest\adt\sdk set Path value:%android_home%\tools;%android_home%\platform-tools 4) Networked installation
Appium Enter cmd command line, input: NPM install–g appium or npm--registry http://registry.cnpmjs.org install-g appium (recommended this, NPM's domestic image) Note:- G Global parameters Wait a few minutes, you can see Appium version 1.1.0 and installation directory 5) Check if the Appium installation is successful. Go to the cmd command line and enter Appium hint: Socket.io started instructions are installed. 6) Check Appium required environment is OK (this step is important) into the cmd command line, enter Appium-doctor, the following prompt, all Checks were successful, indicating that the environment is successful. 7) Install Apache Ant (This step saves) installing Apache Ant (http://ant.apache.org/bindownload.cgi). Unzip the folder and add the path to the environment variable. Variable: Ant_home value: D:\AutoTest\ant-1.9.4 set path:%ant_home%\bin; Test if Ant is successfully installed, go to cmd command line: Enter ant, if not specified Build.xml will output: Buildfile:build.xml does notexist! Build failed 8) installs Apache Maven (this step can save) Download Maven (http://maven.apache.org/download.cgi), unzip the folder, and add the path to the environment variable. Variable m2_home value: D:\AutoTest\maven-3.1.1 set path:%m2_home%\bin; Test if MAVEN is successful, run cmd, enter mvn-version If successful, environment information such as MAVEN version appears. Installation: Python+webdriver Environment First step: Install Active-python, double-click the executable file, directly installed by default. Step Two: Install Selenium Webdriver 1. Open cmd 2. The command is: Pip install selenium-i http://pypi.douban.com/simple (using domestic address) 3. Open the Python shell or Idel interface and enter the FromSelenium Import Webdriver If you do not make an error, then you have installed selenium for Python successfully. 4. Install Appium-python-client: (This step is important, must) into the cmd, input: Pip install appium-python-client above all installed, the last is to execute the example to test: 1. Open ADT, Create an emulator and launch the Android emulator. 2. In cmd start appium input: Appium 3. Open a different cmd terminal window. Switch to the instance code path and execute the android_contacts.py file.
Appium Full Installation tutorial