Appium Environment Construction

Source: Internet
Author: User
Tags install node appium

First, the applicable operating system
Win7 Ultimate SP1 64-bit OS or 32-bit operating system
Second, the required software
Jdk-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 steps
1) 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 that the Java 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 variables, set the android_home system variable to your Android SDK 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
Go to the cmd command line and enter:
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 more minutes to see the Appium version 1.1.0 and the installation directory

can also: http://appium.io/ downloaded after the decompression to the local PC, the compressed package has Appium.cmd file path set to the environment variable path.

5) Check if the Appium is installed successfully.
Go to cmd command line, enter Appium
Tip: Socket.io started instructions are installed.

6) Check if the environment required for the Appium is OK (this step is important)
Enter cmd command line, enter Appium-doctor, the following prompt appears, all Checks were successful, indicating that the environment is successful.

7) Install Apache Ant (This step can save)
Install 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

You can also use the ant that comes with eclipse, the path is eclipse\plugins. Configure the environment as above.


8) Install 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
The first step: Install Active-python, double-click the executable file, directly installed by default.
Step Two: Install Selenium webdriver
1. Open cmd
2. Command: Pip install selenium-i http://pypi.douban.com/simple (using domestic address)
3. Open the Python shell or Idel interface, enter the from selenium import Webdriver If the error does not indicate that you have installed selenium for Python successfully.
4. Install Appium-python-client: (This step is important, must)
Enter cmd, enter: Pip install appium-python-client
When all of the above is installed, the final example is to perform the test:
1. Open ADT, create an emulator, and launch the Android emulator.
2. Start Appium in cmd
Input: Appium
3. Open a different cmd terminal window. Switch to the instance code path and execute the android_contacts.py file.

Appium Environment Construction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.