monkey命令

1.    adb shell
    cd /system/bin
    monkey
    adb shell monkey -h
2.    adb shell monkey 100        发送100个随机事件
3.    adb shell monkey -v -v -v 100         发送100个随机事件并打印日志,-v越多日志越详细
4.    adb shell monkey -f /mnt/adcard/test 1
5.    adb shell monkey -s 2 1        重复之前的随机操作,重复2次
6.    adb shell monkey --throttle 1000 10        发送10个随机事件,每个事件间隔1000毫秒
7.    adb shell monkey -p 包名 10        针对某包发送10个随机事件
8.    adb shell monkey -p com.tencent.mm -p com.tencent.qq --throttle 1000 10
9.    adb shell monkey --pct--touch 100 10    发送10个随机事件,触摸动作占比100%
10.    adb shell monkey --ignore-crashes 10    发送10个随机事件,无视fc问题
11.    adb shell monkey --ignore-timeouts 10    发送10个随机事件,无视anr问题
12.    adb shell monkey --ignore-security-exceptions 10    发送10个随机事件,无视权限问题
13.    adb shell monkey --kill-process-after-error 10    无视应用程序错误,继续执行
14.    adb shell monkey --monitor-native-crashes 10    运行native code的崩溃事件被监视并报告
15.    adb shell monkey -p com.android.settings --ignore-crashes --ignore-timeouts --throttle 500 -v -v -v 9999 >d:/log.txt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值