adb shell monkey -p packagename -s 200 --ignore-crashes --ignore-timeouts --monitor-native-crashes --pct-touch 50 --pct-motion 50 -v -v 100000 >d:\monkey.txt
adb shell monkey 执行命令
-p packagename (包名)指定测试哪个apk
-- throttle 制定多长时间执行一次 例子为200毫秒
--pct-touch 50 --pct-motion 50 调整触摸 和 事件 的百分比
--ignore-crashes --ignore-timeouts --monitor-native-crashes 忽略程序崩溃 、 忽略超时 、 监视本地程序崩溃
-v -v 100000 >d:\monkey.txt 调整日志等级 以及测试次数本例为100000次 并把生成的日志保存到 d:\monkey.txt 文件中