摘要: 1、unittest对于需要关联的请求,怎么处理(如购物接口,需要先登录) a)把登录请求写到测试用例类的setUP函数中,这样每次调用测试用例,都会先执行setUP函数 b)全局变量的形式声明。 c)反射 如下为全局变量的例子: from auto_api.tool.common import c 阅读全文
posted @ 2019-12-02 17:21 红枣枸杞 阅读(417) 评论(0) 推荐(0)
摘要: 1、安装第三方库:openpyxl 2、操作示例 from openpyxl import load_workbook #1、打开文件 file = load_workbook("test.xlsx") #Open the given filename and return the workbook 阅读全文
posted @ 2019-12-02 15:45 红枣枸杞 阅读(706) 评论(0) 推荐(0)