Monkey测试常用命令

adb shell monkey -p packageName 只是对指定包名(packageName)进行测试

adb shell monkey --throttle milliseconds 指定时间之间的间隔时间,单位毫秒

adb shell monkey -s seed 伪随机数生成器的seed值,如果用相同的seed值再次运行Monkey,它将生成相同的事件序列

adb shell monkey -v [-v -v] 指定日志级别

adb shell monkey --pct-touch 指定触摸事件的百分比percent

adb shell monkey --pct-motion 指定动作事件的百分比percent

adb shell monkey --pct-trackball 指定轨迹球事件百分比percent

adb shell monkey --pct-nav 指定基本导航事件百分比percent

adb shell monkey --pct-majornav 设定主要导航事件百分比percent,兼容中间键,返回键,菜单键

adb shell monkey --pct-syskeys 设定系统事件百分比percent 比如HOME、BACK、拨号键、音量调节键等

adb shell monkey --pct-appswitch 设定启动不同应用程序的事件百分比percent

adb shell monkey --pct-anyevent 设定不常用事件的百分比percent

adb shell monkey --ignore-crashes 忽略崩溃和异常事件

adb shell monkey --ignore-timeouts 忽略超时事件

adb shell monkey --pkg-blacklist-file 设置不需要进行测试的黑名单应用

adb shell monkey --pkg-whitelist-file 设置需要进行测试的白名单应用

猜你喜欢

转载自blog.csdn.net/lu962820662/article/details/123528348