Appium--appium installation of Windows edition

Source: Internet
Author: User

Transferred from: http://www.cnblogs.com/nbkhic/p/3803883.html

Original address

Thank Testerhome for his hard translation.

The copyright of this article is owned by ethanol, welcome reprint, but please specify the author and source, strictly prohibited for any commercial use

Limit

If you install Appium on Windows, you won't be able to use pre-compiled. app files dedicated to OS X, and you will also be unable to test iOS apps because Appium relies on OS X-specific libraries to support iOS testing. This means that you can only run iOS app tests on your Mac. This is a pretty big limit.

Start installation
    1. Install Nodejs version 0.8 and above, and install it through the official installation program.

    2. Install the Android SDK package, (http://developer.android.com/sdk/index.html), run the ' Android ' tool in dependent SDK. And make sure you have the LEVEL17 or above version API installed. Set the ANDROID_HOME system variable to your Android SDK path and add tools Platform-tools two directories to the system's path path. Because the bread here contains some execution orders.

    3. Install the Java JDK and set the JAVA_HOME variable to your JDK directory.

    4. Install Apache ant or use the ant that comes with the Android Windows SDK directly, the address in the Eclipse\plugins directory, you need to add this directory to your system PATH variable

    5. Install Apache Maven. and set the M2home and M2 environment variables, add the M2 environment variable to your system path variable.

    6. Install Git. Make sure you have Git installed under windows so that you can run common command commands

Now that you have downloaded all the dependencies installed, start running Reset.bat

Run Appium

To run test cases on Windows, you need to start the Android emulator or connect the Android LEVEL17 above the previous API. Then run appium node at the command line.

Note
    • You must bring the--no-reset and--full-reset tags to use for Android on Windows
    • There is a hardware acceleration simulator for Android, but it has some limitations of its own, if you want to learn more, please refer to the page
    • Make sure that config.ini there is a configuration item in your AVDhw.battery=yes
The simplest way to install

Due to the respect for official documents, I translate according to the original, the following describes my installation experience. Some of the tools that are officially mentioned don't actually need to be installed. Here are the installation and use procedures I have tested

Installing Appium
    1. Installing Nodejs

2. Use NPM to install APPIUM,NPM install-g appium

Note: In some cases, appium installation will not put the Appium path into the system path, this time need to manually add a bit.

Run Appium

Start Appium and run Appium directly.

Update Appium

by npm install -g appium updating Appium, you can

Appium--appium installation of Windows edition

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.