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 设置需要进行测试的白名单应用

  • 0
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值