lvjing@lvjingdeMacBook-Pro spring-boot-api % hrun login_har.yml INFO HttpRunner version: 2.5.7 INFO Start to run testcase: testcase description /v1/user/login INFO GET http://127.0.0.1:8988/v1/user/login E
During handling of the above exception, another exception occurred:
Traceback (most recent call last): urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x10a794220>: Failed to establish a new connection: [Errno 61] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=8988): Max retries exceeded with url: /v1/user/login (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10a794220>: Failed to establish a new connection: [Errno 61] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=8988): Max retries exceeded with url: /v1/user/login (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10a794220>: Failed to establish a new connection: [Errno 61] Connection refused'))
---------------------------------------------------------------------- Ran 1 test in 0.005s
FAILED (errors=1) INFO Start to render Html report ... INFO Generated Html report: /Users/lvjing/httprunner-project/spring-boot-api/reports/20210810T111302.013486.html Sentry is attempting to send 0 pending error messages Waiting up to 2 seconds Press Ctrl-C to quit
har2case转json格式脚本
不需要增加参数,可直接生成
1 2 3 4 5 6
lvjing@lvjingdeMacBook-Pro spring-boot-api % har2case login_har.har INFO:root:Start to generate testcase. INFO:root:dump testcase to JSON format. INFO:root:Generate JSON testcase successfully: login_har.json lvjing@lvjingdeMacBook-Pro spring-boot-api % ls login_har.har login_har.json