摘要: import xlrd#打开文件并拿到book对象:book = xlrd.open_workbook(r"D:\s27\day68\接口测试示例.xlsx")sheet = book.sheet_by_index(0)print(sheet)#获取行:# print(sheet.nrows)#获取 阅读全文
posted @ 2020-01-21 23:50 干it的小张 阅读(174) 评论(0) 推荐(0) 编辑
摘要: import pytestimport requestsimport allure l = [ { "url": "https://www.v2ex.com/api/site/info.json", "title":"v2ex的title", "desc":"v2ex的描述信息", "expect" 阅读全文
posted @ 2020-01-21 21:34 干it的小张 阅读(586) 评论(0) 推荐(0) 编辑
摘要: 下载:pip install allure-pytest下载jdk 配置Java环境 配置pytest.ini [pytest]addopts = -s -v --html=report/report.html --alluredir ./report/resulttestpaths = ./scr 阅读全文
posted @ 2020-01-21 14:24 干it的小张 阅读(312) 评论(0) 推荐(0) 编辑
摘要: about JDK是Java语言的软件开发工具包,主要用于移动设备、嵌入式设备上的java应用程序。JDK是整个java开发的核心,它包含了JAVA的运行环境,JAVA工具和JAVA基础的类库。 JRE(Java Runtime Environment,Java运行环境),运行JAVA程序所必须的环 阅读全文
posted @ 2020-01-21 13:30 干it的小张 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 可以根据下面的连接进行在线下载,也可以使用: 链接:https://pan.baidu.com/s/1CbuveTgJ43NaTwbyDaSiqg 提取码:bchj JDK简介 JDK是Java语言的软件开发工具包,主要用于移动设备、嵌入式设备上的java应用程序。JDK是整个java开发的核心,它 阅读全文
posted @ 2020-01-21 12:45 干it的小张 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 下载测试报告插件:pip install pytest-html 配置ini文件: [pytest]addopts = -s -v --html=report/report.htmltestpaths = ./scriptspython_files = test_case.pypython_clas 阅读全文
posted @ 2020-01-21 12:09 干it的小张 阅读(289) 评论(0) 推荐(0) 编辑
摘要: import pytestimport requests @pytest.fixture()def db(): print("Connection successful") yield print("Connection closed")def search_user(user_id): d = { 阅读全文
posted @ 2020-01-21 11:05 干it的小张 阅读(343) 评论(0) 推荐(0) 编辑
摘要: import pytestimport requests @pytest.fixture()def login(): print("登录.......")def test_index1(login): """测试之前先登录""" print("主页1..........")def test_inde 阅读全文
posted @ 2020-01-21 10:43 干it的小张 阅读(123) 评论(0) 推荐(0) 编辑