一、運(yùn)行測試用例
-
hrun運(yùn)行
運(yùn)行命令:hrun testcases/testcase
-
pycharm運(yùn)行
直接對應(yīng)的.py文件中,運(yùn)行即可
二、生成測試報(bào)告
1. httprunner內(nèi)置測試報(bào)告
1. hrun testcases/ --html=./html/test.html
image.png
2. allure測試報(bào)告
- hrun testcases/ --alluredir=allure_results
- allure generate --clean allure_results -o html/
image.png