MonkeyRunner
上一篇 /
下一篇 2017-07-30 18:41:32
/ 个人分类:移动测试
Monkey Script无法实现截屏操作
MonkeyRunner
MonkeyRuuner.alert(内容,标题,)
拖动:drag(tuple start,tuple end,float duration,integer steps)
start:起点位置,end:终点位置,duration:手势持续时间,steps:插值点的步数,默认为0
按键:press(string keycode,dictionary type)
keycode 名,down,up,down_and_up
启动应用:startActivity(package+/+activity)
点击操作:touch(integer x,integer y,integer type)
x,y都是坐标值,type:down,up,down_and_up
截屏:MonkeyImage takeSnapshot()
保存图像:writetoFile(string path,string format)
format表示保存图片的类型
收藏
举报
TAG: