mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-06 15:01:22 +08:00
improve exception notification
This commit is contained in:
@@ -13,7 +13,7 @@ class TestRunner(object):
|
|||||||
url = req_kwargs.pop('url')
|
url = req_kwargs.pop('url')
|
||||||
method = req_kwargs.pop('method')
|
method = req_kwargs.pop('method')
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise exception.ParamsError("Params Error")
|
raise exception.ParamsError("URL or METHOD missed!")
|
||||||
|
|
||||||
resp_obj = self.client.request(url=url, method=method, **req_kwargs)
|
resp_obj = self.client.request(url=url, method=method, **req_kwargs)
|
||||||
diff_content = utils.diff_response(resp_obj, testcase['response'])
|
diff_content = utils.diff_response(resp_obj, testcase['response'])
|
||||||
|
|||||||
Reference in New Issue
Block a user