- 博客(6)
- 收藏
- 关注
原创 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
392
原创 monkey约束类命令
1. 限制在固定包里运行随机事件: adb shell monkey -p 包名 如需指定多个包,那么在每个包名前都要加上-p2. 限制在固定的类里运行随机事件: adb shell monkey -c 类名 如需指定多个类,那么在每个类名前都要加上-c 如果不指定任何类,monkey 将选择 Intent.CATEGORY_LA
2016-04-04 23:42:13
327
原创 monkey事件类命令2
1. 每间隔一定时间执行一次事件,此举是为了保证事件能够被响应: adb shell monkey --throttle 毫秒2. 调整触摸事件百分比: 触摸事件:发生在某一位置的一个down-up事件 adb shell monkey --pct-touch 百分比3. 调整动作事件百分比: 动作事件:在某一位置按下(down)后,
2016-04-04 23:40:34
927
原创 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
522
原创 adb下查看应用包名和应用主界面
查看包名:1. 进入 adb shell2. 通过命令 ls data/data查看3. 或者通过如下命令:adb shell pm list package -f 这个命令的输出结果包含了具体路径查看应用主界面:1. 在adb shell 下输入logcat | grep START ,启动应用,查看下图标记下的 “cmp=”, 后面就是我们所需的主界面名
2016-04-04 23:23:42
4198
转载 python装饰器详解,from stackoverflow
附上链接:http://stackoverflow.com/questions/739654/how-can-i-make-a-chain-of-function-decorators-in-python/1594484#1594484虽然是英文的,但思路看起来很清晰,也不是很难懂
2016-02-26 11:25:54
265
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人