【文件属性】:
文件名称:rest-api-requests:使用请求在Python中测试RESTful API
文件大小:74KB
文件格式:ZIP
更新时间:2021-03-21 23:56:04
HTML
使用请求在Python中测试RESTful API
运行测试:
开放式终端
转到项目位置
输入pytest并按Enter键
使用pytest-html生成HTML报告:
开放式终端
转到项目位置
输入pytest -sv --html report.html并按Enter键
捕获标准输出:
开放式终端
转到项目位置
输入pytest -sv --capture=sys --html=report.html并按Enter键
HTML报告:
【文件预览】:
rest-api-requests-main
----test-data()
--------test-data-zip.csv(59B)
----img()
--------report.png(68KB)
----requirements.txt(71B)
----report.html(17KB)
----LICENSE(1KB)
----README.md(511B)
----tests()
--------test_example_03.py(1KB)
--------test_example_02.py(1KB)
--------__pycache__()
--------test_example_01.py(1KB)
----http-bin()
--------test_01_post.py(767B)