Appium Environment Construction

Source: Internet
Author: User

I. Appium installation
    1. Installing Nodejs
      • Select the latest version in the https://nodejs.org/download/and select the version that is appropriate for your system download

      • After downloading the installation, open cmd and enter node-v to check Nodejs version to see if there is a successful installation

    2. Installing Appium
      • Installing Appium with NPM
        Open the cmd window and enter NPM install-g appium to install

      • Officially recommended this way to install appium, usually this way to download will be slower, so here I use a Baidu network disk download link to download http://pan.baidu.com/s/1jGvAISu.
        Here i download is the newest appium-desktop-setup-1.2.7.exe to install, also can download appiumforwindows_1.4.16.1.zip this kind of compress package to install (because I see is 15, not newest, it is useless this way )
      • After installation is the case, the default host is 0.0.0.0,port is 4723

      • Click Start Server v1.7.1 to launch
Two. Install the Android development environment
  1. Installing the Java Environment
    • Download directly from the JDK website: http://www.oracle.com/technetwork/java/javase/downloads/ jdk8-downloads-2133151.html download is jdk-8u162.windows-x64.exe, then install in E:\Program files\java\jdk1.8.0_162\ Click Next installation is complete

  2. Configuring Java Environment variables
    • Open "My Computer"-"Properties"-"advanced"-"Environment variables"-"System variables"-Create a new variable named java_home, variable value Configure the address of the Java installation
      Variable name: java_home
      Variable Value: E:\Program files\java\jdk1.8.0_162

    • Create a new variable named Class_path, and the value of the variable is configured to install the Java file address under Lib
      Variable name: Class_path
      Variable value:%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

    • In the PATH variable-"edit", add the address of the Java post-installation bin
      Variable name: Path
      Variable value:%java_home%\bin;%java_home%\jre\bin;

    • Open the cmd window and enter Java and Javac to verify that the installation was successful


  3. Installing the Android SDK
    • This is the Android SDK tool in http://www.androiddevtools.cn/, and you can download other tools.

    • This way, this machine's directory is E:\android-sdk_r24.4.1-windows\android-sdk-windows.
    • New Android_home variable in "My Computer"-"Properties"-"advanced"-"Environment variables"-"System Variables", the value of which is the address of the Android SDK
      Variable name: android_home
      Variable Value: E:\android-sdk_r24.4.1-windows\android-sdk-windows

    • Click "Edit" in the path variable name to add the address of the Android tools
      Variable name: Path
      Variable value:%android_home%\platform-tools;%android_home%\tools;

  4. SDK Manager Installation Simulator
    • Open the SDK Manager, and then download the tools in tools that it downloads by default

    • Then the Android side of the selection is 7.0 under the tool to come down

    • Then enter ADB in the CMD window to verify that the installation was successful

  5. Open AVD Manager
    • Click Create.

    • After selecting the parameters, click OK

    • Then click Start .... Open the emulator to

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.