If you have an Android environment, you can use the ADB command
First, the purpose of Monkey testing?
This tool can be used to test stability. Developers work with monkey-printed logs and system-printed logs to resolve problems in testing
Second, the characteristics of Monkey test?
Monkey test, all events are randomly generated, without the subjectivity of anyone
Iii. Monkey Order
adb shell monkey-p com.xxxxx-s 500-v 10000
However, in order to ensure the integrity of the test quantity in the work, we generally do not exit the test immediately when the error occurs, Monkey Test command as follows
adb shell monkey-p com.xxxxx-s--ignore-crashes--ignore-timeouts--monitor-native-crashes-v-V 20000 >D:\monke Y_log.txt
Monkey-Action Package: com.xxxxx
Seed value of the resulting time series: 1000
Ignore program crashes, ignore timeouts, monitor local program crashes, detail level 2, generate 20,000 events
Android Monkey Test Learning