1. C:\Users\ThinkPad>hrun F:\Study\python_code\test0302\httprunner_test\test_httpbin.yml
ERROR !!!!!!!!!! exception stage: load tests !!!!!!!!!!RecursionError: maximum recursion depth exceeded while calling a Python object
需要切换到 F: 去运行
2.
- config: name: httpbin api test request: base_url: http://www.httpbin.org - test: name: get resoure request: url: /get method: GET validate: - eq: [status_code,200]
====================================================================== ERROR: test_0000_000 (httprunner.api.TestSequense) get resoure ---------------------------------------------------------------------- Traceback (most recent call last): httprunner.exceptions.ParamsError: base url missed!
---------------------------------------------------------------------- Ran 1 test in 0.000s
需要修改yaml 如下格式 注意base_url:
- config: name: httpbin api test request: base_url: http://www.httpbin.org - test: name: get resoure request: url: /get method: GET validate: - eq: [status_code,200]