01 2017 档案

摘要:#encoding: utf-8 ''' Author:Siukwan ''' import sys reload(sys) sys.setdefaultencoding('utf8') import json def txt2str(file='jsondata2.txt'): ''' 打开指定的json文件 ''' fp=open(file) allLines = ... 阅读全文
posted @ 2017-01-16 21:04 七月的尾巴_葵花 阅读(2071) 评论(0) 推荐(1) 编辑
摘要:通过MonkeyRunner遍历apk文件夹里的apk文件,实现自动安装应用,打开应用,截图,将截图与提前准备好的基线图做对比,对比相似度达到90%时,则对比通过,然后自动卸载应用,进入下一个APK文件的对比流程。当对比失败时,将自动停止测 #!/usr/bin/env monkeyrunner # -*- coding: utf-8 -*- import time import sys im... 阅读全文
posted @ 2017-01-04 16:57 七月的尾巴_葵花 阅读(699) 评论(0) 推荐(1) 编辑
摘要:webdriver contexts(self) 说明:返回多个会话内容 使用:driver.contexts current_context(self) 说明:返回单个会话的内容 使用:driver.current_context context(self) 返回current_context(s 阅读全文
posted @ 2017-01-03 17:32 七月的尾巴_葵花 阅读(3048) 评论(0) 推荐(2) 编辑