Appium Mobile Automation Test (ii) Install the Android development environment

Source: Internet
Author: User
Tags variables appium

Continue to build the appium environment.

Section II installs the Android development environment

If your environment is a Mac then you can skip this section directly. Just as we were using selenium for Web automation testing, we needed a browser to execute the test script. So the mobile-end automated test, we also need an Android phone (mobile phone need to link the computer) or the Android simulator.

Installing the Java Environment

As we all know, Android is developed by the Java language, so to develop Android apps requires the Java environment First, so we first need to install the Java environment.

Java Download Address: http://www.java.com/zh_CN/download/manual.jsp

Small knowledge:

The Java environment is divided into JDK and JRE, and the JDK is Java Development Kit. Simply put, the JDK is a developer-oriented SDK that provides a Java development environment and a running environment. The JRE is Java Runtime enviroment is the Java operating environment, and is intended for use by Java program users, not developers.

Open the download link and select the appropriate version to download. Let's take the Windows installation JDK for example,

Double-click the downloaded JDK to set the installation path. Here we choose to install the default

D:\Program Files (x86) \java\jdk1.8.0_25 directory.

Set the environment variables below:

"My Computer" right-click menu---> Properties---> Advanced---> Environment variables---> System variable--> new.

Variable name: java_home

Variable Value: D:\Program Files (x86) \java\jdk1.8.0_25

Variable name: Calss_path

Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

Locate the path variable name-> edit add:

Variable name: PATH

Variable value:%java_home%\bin;%java_home%\jre\bin;

To verify the success of Java at the Windows command prompt:

  ..... C:\users\fnngj>java usage: Java [-options] class [args ...]            (Execution Class)    Or  Java [-options]-jar jarfile [args ...]            (Execute JAR file)  Options include:     -d32          Use the 32-bit data model (if available)     -d64          Use the 64-bit data model (if available)     -server       Select the "Server" VM     - Hotspot      is synonymous with the "server" VM [obsolete] The                   default VM is server ...    . C:\users\fnngj>javac usage: javac <options> <source files> Where possible options include:-   g                         generates all debug information-   g: None                    generates no debug information   -g:{lines,vars,source}     generates only some debugging information   -nowarn                    does not generate any warnings   -verbose                   Output messages about what the compiler is doing   -deprecation               output uses an obsolete API source location   -classpath < path >            specify where to find user class files and annotation handlers   -CP < path >                   specify where to find user class files and annotation handlers   

Related Article

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.