2019年8月16日

关于pytest使用allure生成报告时,报一堆警告和缺少XX模块

摘要: 因为最新的pytest 支持*.josn的用例报告,卸载旧的模块使用新的即可: 需要移除旧模块:pip uninstall pytest-allure-adaptor, 并安装:pip install allure-pytest,并把pytest升到最新:pip install -U pytest 阅读全文

posted @ 2019-08-16 21:42 GSY921 阅读(460) 评论(0) 推荐(0) 编辑

【Mac+Wind7】pytest + allure生成定制报告

摘要: 一、升级Powershell(windows7及以上版本默认自带、其实普通的CMD命令行工具够用了) 我是Win7默认带的pw1.0,太古老了升级一下,地址如下,选择与自己windows版本匹配的连接下载: https://docs.microsoft.com/zh-cn/powershell/sc 阅读全文

posted @ 2019-08-16 17:23 GSY921 阅读(543) 评论(0) 推荐(0) 编辑

2019年8月12日

Mac下搭建atx2环境

摘要: Git-atx2官网地址,默认已有python3环境 1.安装rethinkdb 安装db:mac上安装很简单,执行brew install rethinkdb 启动db:nohup rethinkdb & 2.安装atx-server 下载atx2项目文件到本地:git clone https:/ 阅读全文

posted @ 2019-08-12 15:32 GSY921 阅读(663) 评论(0) 推荐(0) 编辑

2019年8月11日

MAC 下SFT环境搭建及使用

摘要: 安装过程(开源官方:https://github.com/openstf/stf) 基本工具准备brew,nvm 1.安装依赖库(jdk8官网下载直接安装即可) brew install graphicsmagick zeromq protobuf yasm pkg-config cmake ret 阅读全文

posted @ 2019-08-11 21:06 GSY921 阅读(528) 评论(0) 推荐(0) 编辑

2019年8月5日

【转发】基本adbui命令使用 可做图像识别

摘要: 原文请参考,很详细:hao1032/adbui 非常详细,感谢整理!!首先了解下 adb命令大全,adb最全的命令 阅读全文

posted @ 2019-08-05 18:49 GSY921 阅读(935) 评论(0) 推荐(0) 编辑

2019年8月1日

UIAutomator2的API文档(三)

摘要: 1.UI对象识别器Selector 用法d(text='Clock', className='android.widget.TextView') 支持以下参数,详细信息可参考UiSelector Java doc text, textContains, textMatches, textStarts 阅读全文

posted @ 2019-08-01 21:18 GSY921 阅读(7127) 评论(1) 推荐(1) 编辑

UIAutomator2的API文档(二)

摘要: 1.设备屏幕事件 熄灭屏幕d.screen_off() 唤醒屏幕d.screen_on() 屏蔽状态d.info.get('screenOn')#返回True or False 解锁屏幕d.unlock()#安卓7.0试了可以,安卓9.0就不行了,实际行为是 1.启动activity: com.gi 阅读全文

posted @ 2019-08-01 16:48 GSY921 阅读(4396) 评论(0) 推荐(0) 编辑

2019年7月31日

UIAutomator2的API文档(一)

摘要: 检查并维持设备端守护进程处于运行状态,应该是重启了atx守护进程:d.healthcheck() 1.隐式等待 import uiautomator2 as u2serialno = '7f3dec60'd = u2.connect_usb(serialno)d.implicitly_wait(3. 阅读全文

posted @ 2019-07-31 21:33 GSY921 阅读(2692) 评论(0) 推荐(0) 编辑

UIAutomator2安装及连接

摘要: 记录一下自己的偿试过程,内容来自:https://github.com/openatx/uiautomator2 d.service("uiautomator").stop()是因为,安卓上的UiAutomator是独享的,一旦一个服务使用了它,其他人就不让碰了。 所以 appium, macaca 阅读全文

posted @ 2019-07-31 17:36 GSY921 阅读(4805) 评论(0) 推荐(0) 编辑

uiautomator2通过wifi操作手机

摘要: 参考来源:https://www.cnblogs.com/c-x-a/p/11176066.html,有部分不适合当前版本的做了修改 运行uiautomator2 init初始化报错:AttributeError: module 'collections' has no attribute 'Mut 阅读全文

posted @ 2019-07-31 11:23 GSY921 阅读(2627) 评论(1) 推荐(1) 编辑

导航