ADB命令与monkey

adb devices查看已连接的设备

adb install package.apk

adb shell monkey 1000 随机操作1000次当次操作可能会 

adb无法使用,提示error: unknown host service的解决办法

解决方案在这里http://blog.csdn.net/liguilicsdn/article/details/50902194

 

当此命令执行后会有反馈

Events injected: 1000这里如果数值等于你的输入值则说明执行了1000次,如果小于你的数值则说明中间出现了异常

还有些注释比如//activityresuming(com.android.setting)记录app从前台到后台后又进入前台会记录

adb logcat | grep START这里是logcat 其中|是Linux中管道的意思把前一个命令的输出作为下一个的输入,grep START是抓取日志中包含START的日志信息

adb shell monkey -p a66weding.com.jiehuntong 1000 给指定的包(你的应用)打压力1000次  -p 是package的命令缩写a66weding.com.jiehuntong 是你指定应用的包名

adb shell monkey -p a66weding.com.jiehuntong 1000  --throttle 1000  解释: --throttle 1000是每个指令之间的间隔时间也可以这样写adb shell monkey -p a66weding.com.jiehuntong  1000 100 这里的前面1000是延时,100是次数

adb shell monkey -v -p a66weding.com.jiehuntong 1000 -v 的意思是列出详细执行的命令,以及所占百分比

adb shell monkey -v -p a66weding.com.jiehuntong 1000 --pct--touch 100 100 --pct--touch 设置点击事件百分比,

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值