Monkey is easy to use
A brief introduction to Monkey
Monkey is a command line random point tool under tools in Android's SDK. As its name implies, Monkey is a monkey, and Monkey testing is like a monkey testing a random page under a specified APP. Is also a stress testing gadget, the main purpose is to test whether app can Crash.
Two uses:
Prerequisites: install Android SDK and configure environment variables.
You can execute adb shell monkey {+ command parameters} in the CMD window for Monkey testing, and you can also enter the installation system for stress testing through the adb shell command, such as:
Methods: 1. Adb connect127.0.0.1:62001
2. Adb-s 127.0.0.1 62001 shell
3. How to link a real machine: adb shell
For example, adb shell monkey-p [package name]-s 500--ignore-crashes-- ignore-timeouts-- monitor-native-crashes-v-v 10000 can be specified under a file, so that it can be downloaded and viewed locally.
Ming: monkey function of the package: [package name] generate time series seed value: 500
Ignore program crashes, ignore timeouts, monitor local program crashes, level of detail is 2, resulting in 10000 events
Parameters:
Basic parameters:
-p
-v specify the feedback level with feedback
-s (random number seed) use the value of specify pseudo-random number generator
-- throttle