![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python+requests接口自动化测试
文章平均质量分 52
小苗12377
记录学习中遇到的知识点
共勉
展开
-
Python+requests+openpyxl+ddt+unittest出测试报告
excel文件:login.xlsx 使用openpyxl读取excel文件,并且将读到的数据保存在数组中,数据以字典的格式存储: HttpRequests请求方法: 取路径的方法: 单元测试类:使用unittest框架+ddt 测试方法入口: 测试报告: ...原创 2020-06-17 16:08:51 · 520 阅读 · 1 评论 -
Python+requests+openpyxl处理HTTP请求的方法
目录结构: excel文件:login.xlsx 使用openpyxl读取excel文件,并且将读到的数据保存在数组中,数据以字典的格式存储: HttpRequests请求方法: 测试类: 写入结果的excel:原创 2020-06-15 15:34:07 · 478 阅读 · 0 评论 -
requests+python的简单用法
高级用法:https://www.osgeo.cn/requests/user/advanced.html#prepared-requests get请求不带参数 结果: post请求带参数,参数是json格式原创 2020-06-17 16:08:37 · 288 阅读 · 0 评论 -
python+requests安装
1.命令提示框输入:pip3 install requests 2.在工具中加入requests包,如 我使用的是Pycharm 一个简单的requests 示例: 被测代码: 测试代码:原创 2019-09-09 13:33:00 · 155 阅读 · 0 评论