脚本:

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

posted on 2013-12-04 10:14  wangwangheng  阅读(423)  评论(0)    收藏  举报