Android测试跑单个包脚本文件

脚本:

adb shell monkey -p 应用包名 --throttle 随机事件间隔 -v -v -v -s 1 --ignore-security-exceptions --kill-process-after-error --monitor-native-crashes 随机事件个数 > Monkey日志保存路径

例子:

adb shell monkey -p com.xinye.test --throttle 500 -v -v -v -s 1 --ignore-security-exceptions --kill-process-after-error --monitor-native-crashes 16400000 > E:\monkey.txt

停止Monkey进程
adb shell
ps|grep monkey
kill id

原文地址:https://www.cnblogs.com/xinye/p/3457043.html