摘要: https://www.cnblogs.com/chimeiwangliang/p/7130434.html 阅读全文
posted @ 2018-06-22 15:18 cynthia59 阅读(83) 评论(0) 推荐(0) 编辑
摘要: import time #字符串转化为时间戳 def str_to_timeStamp(str): '''字符串格式为:2017-11-24 17:30:00''' timeStruct = time.strptime(str, "%Y-%m-%d %H:%M:%S") timeStamp = int(time.mktime(timeStruct)) retur... 阅读全文
posted @ 2018-04-23 17:56 cynthia59 阅读(250) 评论(0) 推荐(0) 编辑
摘要: from PIL import Image, ImageGrab def screenshot(imagefile): '''截取整个屏幕图片并保存到imagefile''' image = ImageGrab.grab() return image.save(imagefile) def screenshot_by_size(imagefile,x1,y1,x2,... 阅读全文
posted @ 2018-04-23 17:53 cynthia59 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 由于目前测试的软件是C/S客户端的,没有办法愉快的用selenium或appium,只好用10年前学习的autoit加上新学了皮毛的python来解决,在此记录一下学习过程遇到的问题和处理方法。 问:为什么用python+autoit而不是单独使用autoit呢? 答:因为autoit没有现成可用的 阅读全文
posted @ 2018-04-23 17:49 cynthia59 阅读(13753) 评论(1) 推荐(0) 编辑
摘要: Jenkins管理员账号“登录信息无效请重试”的处理办法 刚开始安装的时候没有问题,去 \jenkins\secrets下找到initialAdminPassword这个文件 输入里面的密码就行 隔了一段时间登陆,登陆不上去了,这时候,可以去\jenkins\users\admin 这个目录下找到c 阅读全文
posted @ 2018-04-19 16:37 cynthia59 阅读(4213) 评论(0) 推荐(0) 编辑
摘要: 一、安装虚拟机 之前安装的VMware® Workstation 12 Pro版本,具体步骤略 二、安装ubuntu系统 这次使用的是ubuntu14.04.4的64位版本,下载地址 在VM上安装ubuntu系统的步骤与安装Windows系统差不多,全程自动化进行 三、安装相关软件 第一次自己搭服务 阅读全文
posted @ 2018-04-19 15:43 cynthia59 阅读(757) 评论(0) 推荐(0) 编辑