1.Monkey 命令 基本参数介绍
执行monkey测试100次 针对rom测试或者
指令:adb shell monkey 100
2.忽略崩溃,继续执行程序 –ignore-crashes
指令:adb shell monkey –ignore-crashes 5000 >E:/ceshi/10.txt
3.(忽略超时) --ignore-timeouts(ANR)
指令:adb shell monkey --ignore-timeouts –v 10
4.允许的包名列表
指令:adb shell monkey -p com.baidu.searchbox 100
5.显示日志详细程度
L0)指令:adb shell monkey -p com.baidu.searchbox -v 100
L1) 指令:adb shell monkey -p com.baidu.searchbox -v -v 100
L2) 指令:adb shell monkey -p com.baidu.searchbox -v -v -v 100
6.随机数种子
monkey测试1:adb shell monkey -s 26 -v 100 >E:ceshi/123.txt
monkey测试2:adb shell monkey -s 26 -v 100 >E:ceshi/456.txt
7.throttle <毫秒>
指令::adb shell monkey -throttle 200 -v 500
8.pct-touch调整触摸事件的百分比
指令:adb shell monkey --pct-touch 80 -v 100 >E:ceshi/2222.txt
9.pct-motion调整motion事件百分比
指令:adb shell monkey --pct-motion 67 -v 10