Monkey must be used in the project for stress testing. If you get familiar with it, the commands will not be nonsense. Official documents are available.
For example, you can use the following command to enable the monkey test:
ADB Shell
Monkey-V-p com. archermind. callstat -- Monitor-native-crashes -- ignore-security-exceptions -- kill-process-after-error -- PCT-trackball 0 -- PCT-nav 0 -- PCT-anyevent 0 -- PCT-Restart witch 0 -- PCT-flip 0 -- PCT-majornav 10 -- PCT-touch 44 -- PCT-motion 30 -- throttle 500 6000000>/mnt/sdcard/log/monkey_test.txt & logcat-V time> /mnt/sdcard/log/logcat.txt
Although monkey is powerful, it is not omnipotent. You can use it to test ANR and crash problems. If you want to test the function, you 'd better use monkeyrunner.
Get a monkey script from the test hand. It can perform a monkey test cyclically, whether or not you stop the test because of crash or ANR, And will automatically generate the test log on your hard disk, as long as you connect to your computer in debug mode.