httprunner4.x学习4 - 提取返回结果与校验(extract, validate)

执行命令:

hrp run .\test_extract.yml --gen-html-report

日志:

6:03PM INF validate status_code assertMethod=eq checkExpr=status_code checkValue=200 checkValueType=int64 expectValue=200 expectValueType=int64 result=true
6:03PM INF run step end exportVars={"agent":"application/json","origin":"218.94.85.82","url":"http://httpbin.org/post"} step=post success=true type=request
6:03PM INF run testcase end testcase="引用变量"
6:03PM INF create folder path="results\\20230515180308"
6:03PM INF generate HTML report path="results\\20230515180308\\report.html"
6:03PM INF quit hashicorp plugin process
2023-05-15T18:03:15.897+0800 [WARN] grpc-py: plugin failed to exit gracefully
2023-05-15T18:03:15.913+0800 [ERROR] grpc-py: plugin process exited: path=C:\Users\JennyJiang\.hrp\venv\Scripts\python.exe pid=22096 error="exit status 1"

 

posted @ 2023-05-16 08:56  Jenny测试开发  阅读(330)  评论(2编辑  收藏  举报