Monkey 命令

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值