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.)