mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-15 04:39:45 +08:00
#29: refactor validator, now support custom defined validators
This commit is contained in:
@@ -129,7 +129,11 @@ class Runner(object):
|
||||
self.context.bind_extracted_variables(extracted_variables_mapping)
|
||||
|
||||
try:
|
||||
resp_obj.validate(validators, self.context.get_testcase_variables_mapping())
|
||||
resp_obj.validate(
|
||||
validators,
|
||||
self.context.get_testcase_variables_mapping(),
|
||||
self.context.get_testcase_functions_mapping()
|
||||
)
|
||||
except (exception.ParamsError, exception.ResponseError, exception.ValidationError):
|
||||
err_msg = u"Exception occured.\n"
|
||||
err_msg += u"HTTP request url: {}\n".format(url)
|
||||
|
||||
Reference in New Issue
Block a user