【文件属性】:
文件名称:test_api:REST API测试用例
文件大小:5KB
文件格式:ZIP
更新时间:2021-04-04 02:39:24
Python
测试自动化迷你框架
Python | pytest | 魅力| 码头工人
安装
使用包管理器安装依赖项
pip install requirements.txt
用法
测试步骤:
POST请求
提出要求
补丁请求
删除请求
运行Pytest版本
pytest -v
运行魅力版
pytest -v --alluredir=allure_reports
allure serve allure_reports
码头工人
运行Pytest版本
docker run sen10rqa/api-tests
运行魅力版
docker run -it -p 38077:38077 sen10rqa/api-tests-allure
Docker Hub存储库
Docker容器构建说明
克隆git仓库git clone https://github.com/akarp0v/test_api.git
构建
【文件预览】:
test_api-master
----Dockerfile(832B)
----.gitignore(67B)
----README.md(1KB)
----gorest()
--------api.py(2KB)
--------token.txt(65B)
--------header_composer.py(350B)
--------__init__.py(109B)
--------user_generator.py(263B)
--------const.py(224B)
----test_api.py(3KB)
----requirements.txt(382B)
----entrypoint.sh(173B)