Monkey Environment of Android Automation (I.)

Source: Internet
Author: User

In the testing industry for two years, has been very fond of research technology, but recently a bit lazy. Just the company new products, urging me to learn monkey used to measure its stability.

Online search for a long time, content is always very fragmented, usually need to find a few articles to build the environment. Close-up this article, a piece of paper to fix.

First, what is Monkey?

Monkey is a stability test gadget that comes with the Android system. Believe that you see this article, there must be a basic understanding, there is not much to say.

Second, monkey Environment construction

Just said, Monkey is based on Android, and Android is based on Android SDK, we can think of the Android SDK as a software for the development and operation of Android applications. As we all know, the development of Android applications is in the Java language, so the JDK is also essential.

Not much to say, environmental construction steps:

1. Installing the JDK

(1) click here to download;

(2) Configure the environment variables in the computer after installation:

  

2. Installing the SDK

  (1) click here to download;

(2) After download Direct decompression (note that the path of decompression does not include Chinese and space);

(3) Configure the environment variables in the computer:

  

In addition, add in path;%android_sdk%\platform-tools;%android_sdk%\tools;

In this way, you can guarantee the use of the commands under these two directories.

Third, test the environment to build the results

Win+r input cmd. Then, in the Command window, enter:

1, Java-version

You can see the Java version, as shown in the description, that the JDK is configured correctly.

2. ADB shell

If seen as shown, the ADB is configured correctly. The monkey environment is well-equipped.

However, if you see the following prompt, the ADB is not configured correctly, please check carefully.

I will continue to learn while writing, sharing how to test with monkey, please pay attention to.

Monkey Environment of Android Automation (I.)

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.