android常见的monkey命令

adb shell monkey -p 包名 -v 9000000
adb shell ps | grep monkey //查找到monkey pid
adb shell kill [刚才查到的进程号]
指定一个包: adb shell monkey -p cn.emoney.acg 10
指定多个包:adb shell monkey -p cn.emoney.acg –p cn.emoney.wea -p cn.emoney.acg 100
不指定包:adb shell monkey 100
adb shell monkey -p cn.emoney.acg –v -v 100
adb shell monkey -p cn.emoney.acg –v -v –v 100
adb shell monkey -p cn.emoney.acg –s 10 100
adb shell monkey -p cn.emoney.acg –s 10 100
adb shell monkey -p cn.emoney.acg –throttle 5000 100
用于指定当应用程序崩溃时(Force& Close错误),Monkey是否停止运行。如果使用此参数,即使应用程序崩溃,Monkey依然会发送事件,直到事件计数完成
adb shellmonkey -p cn.emoney.acg --ignore-crashes 1000
adb shellmonkey -p cn.emoney.acg 1000
adb shellmonkey -p cn.emoney.acg --ignore-timeouts 1000
adb shellmonkey -p cn.emoney.acg --ignore-security-exception 1000
adb shellmonkey -p cn.emoney.acg --kill-process-after-error 1000
adb shell monkey -p cn.emoney.acg --pct-touch 10 1000
adb shell monkey -p cn.emoney.acg --pct-trackball 30 1000

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值