monkey
li395269644
这个作者很懒,什么都没留下…
展开
-
monkey事件类命令1
先附上谷歌官方文档:http://developer.android.com/tools/help/monkey.htmlmonkey : 向系统发送随机事件,常用于稳定性测试1. 运行: adb shell monkey 2. 随机发送事件数: adb shell monkey 比如:adb shell原创 2016-04-04 23:33:00 · 523 阅读 · 0 评论 -
monkey事件类命令2
1. 每间隔一定时间执行一次事件,此举是为了保证事件能够被响应: adb shell monkey --throttle 毫秒2. 调整触摸事件百分比: 触摸事件:发生在某一位置的一个down-up事件 adb shell monkey --pct-touch 百分比3. 调整动作事件百分比: 动作事件:在某一位置按下(down)后,原创 2016-04-04 23:40:34 · 927 阅读 · 0 评论 -
monkey约束类命令
1. 限制在固定包里运行随机事件: adb shell monkey -p 包名 如需指定多个包,那么在每个包名前都要加上-p2. 限制在固定的类里运行随机事件: adb shell monkey -c 类名 如需指定多个类,那么在每个类名前都要加上-c 如果不指定任何类,monkey 将选择 Intent.CATEGORY_LA原创 2016-04-04 23:42:13 · 329 阅读 · 0 评论 -
monkey调试类命令
1. 监视应用程序所调用的包之间的切换: adb shell monkey --dbg-no-events 初始化monkey,进入到某个测试activity而不会进一步生成事件,一般会与-v -p -throttle(至少30s)等一起使用2. 在事件前后生成profiling report: adb shell monkey --hprof原创 2016-04-04 23:48:05 · 393 阅读 · 0 评论