Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Monkey is easy to use

Shulou Source: shulou.com Published: 2022-06-03 08:02:17 09月30日 Update

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

Tags: Events tests parameters commands methods information pressure that is tools sequences monkeys seeds programs systems levels random numbers navigation generation as the name implies between Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Xiaomi Linux Redmi Huawei