- 博客(6)
- 收藏
- 关注
原创 MonkeyImage基本API
1. boolean writeToFile(string path,string format)boolean true if writing succeeded.·string path,存储全路径,包括文件扩展名。·string format,存储格式。1) 先调用monkeyDevice中的takeSnapshot方法2) 在调用MonkeyImage中的w
2017-04-13 15:49:07
337
原创 monkeyDevice常用API
注:所有方法在使用的时候都需要使用"device."去调用即device.type('123')1. void drag(tuple start, tuple end, float duration, integer steps)拖拽传递参数坐标时要按照坐标点来传,即数组形式(x,y),drag函数会自动解析成startx,y endx yduration和step
2017-04-11 20:17:59
998
原创 monkey常用API
1. 轨迹球事件构造函数:DispatchTrackball(long downTime, long eventTime,int action,float x, float y, float pressure, float size, int metaState,float xPrecision, float yPrecision, int device, int edgeFl
2017-04-10 21:46:42
581
原创 monkey脚本编写
1. 随便启用一个文本编译器即可书写monkey脚本2. 遵循原则需求: 启动应用,找到输入框,输入文字1) 按照MonkeySourceScript格式先写头#Start Scripttype = raw eventscount =10speed = 1.0start data >>2) 手动运行app,找到主界面的Activi
2017-04-10 21:45:32
963
原创 monkey初级
搭建环境问题1. adb shell提示 error: unknown host service解决办法:打开命令行,输入命令:netstat -ano | findstr "5037"打开任务管理器,在菜单中的查看->选择列中将PID勾选上,然后点击PID列的表头,让其递增排序便于根据pid找到进程名称杀掉该进程即可2. adb shell -> cd
2017-04-10 21:40:25
240
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人