Showing
1 changed file
with
25 additions
and
1 deletions
| 1 | -# api-test | ||
| 1 | +# 接口测试 | ||
| 2 | + | ||
| 3 | +## 搭建环境 | ||
| 4 | + | ||
| 5 | +确保已有python后,安装HttpRunner | ||
| 6 | + | ||
| 7 | +``` | ||
| 8 | +pip install HttpRunner | ||
| 9 | +``` | ||
| 10 | + | ||
| 11 | +安装自定义文件中需要的库 | ||
| 12 | + | ||
| 13 | +``` | ||
| 14 | +pip install requests | ||
| 15 | + | ||
| 16 | +pip install requests-toolbelt | ||
| 17 | +``` | ||
| 18 | + | ||
| 19 | +## 运行 | ||
| 20 | + | ||
| 21 | +执行整个测试文件夹 | ||
| 22 | +``` | ||
| 23 | +httprunner API-TEST | ||
| 24 | +``` | ||
| 25 | +结果在`reports`文件夹中 |
-
Please register or login to post a comment