What is the functionality of "android.intent.category.MONKEY"?

I searched about it, but could not find good documentation on it.

+6
source share
3 answers

Adding android.intent.category.MONKEY to the action means that

This activity can be performed by a monkey or other automatic test instruments.

Reference

How to use it?

+6
source

Monkey is a program that runs on your emulator or device and generates pseudo-random streams of user events, such as clicks, touches or gestures, as well as a series of events at the system level. You can use the monkey for stress testing applications that you develop in a random but repeatable way. here . The easiest way to use the monkey is the following command, which launches your application and sends it 500 pseudo-random events.

adb shell monkey -v -p your.package.name 500

+4
source

This means that the action must be triggered using the Monkey automated testing tool.

+1
source

Source: https://habr.com/ru/post/971954/


All Articles