Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Monkey is easy to use

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report