摘要: 转自 https://www.cnblogs.com/bugmaker/articles/2444905.html MySQLdb.connection.ping()函数可以用来检测在访问前检测数据库的连接是否存在 使用help函数获得帮助信息如下: Checks whether or not th 阅读全文
posted @ 2022-04-30 19:28 刘佳芳 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 框架构造 config+interface+logs+testcase config: 1、config.ini(写入配置,目前存在配置mobile,http,email) 2、readconfig(通过配置获取数据) interface:通用case logs:报错日志 testcase:执行并且 阅读全文
posted @ 2022-03-21 09:42 刘佳芳 阅读(33) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/lc547913923/article/details/45719969 阅读全文
posted @ 2022-03-10 12:09 刘佳芳 阅读(27) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_27820551/article/details/101488430 阅读全文
posted @ 2022-03-10 12:06 刘佳芳 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 安装redis 转自 https://www.runoob.com/redis/redis-install.html 设置密码 转自 https://www.cnblogs.com/suanshun/p/7699084.html 密码设置完毕 提示 noauth authenticationrequ 阅读全文
posted @ 2022-03-03 14:53 刘佳芳 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 更换import 导入包就行 将selenium 放在appium之前 不然会被覆盖 阅读全文
posted @ 2022-02-22 15:39 刘佳芳 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 1.下载,解压,配置path路径https://github.com/allure-framework/allure2/releaseshttps://github.com/allure-framework/allure2 path路径配置:D:\allure-2.13.8\bin验证:allure 阅读全文
posted @ 2022-02-21 14:27 刘佳芳 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 转自 https://www.cnblogs.com/liudinglong/p/12846986.html 主要从用例编写规则、用例的前置和后置、参数化、断言、用例执行、失败重运行和报告这几个方面比较unittest和pytest的区别: 阅读全文
posted @ 2022-02-18 18:21 刘佳芳 阅读(30) 评论(0) 推荐(0) 编辑
摘要: class A(object): # 属性默认为类属性(可以给直接被类本身调用) num = "类属性" # 实例化方法(必须实例化类之后才能被调用) def func1(self): # self : 表示实例化类后的地址id print("func1") print(self) # 类方法(不需 阅读全文
posted @ 2022-02-18 17:45 刘佳芳 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1.首先看app中怎么划分横纵坐标 2.swipe函数 def swipe(self, start_x, start_y, end_x, end_y, duration=None): """Swipe from one point to another point, for an optional 阅读全文
posted @ 2022-02-18 10:17 刘佳芳 阅读(1245) 评论(0) 推荐(0) 编辑