fix teardown_hook对response的修改体现在测试报告上 httprunner#430

This commit is contained in:
fengyu
2019-11-05 14:12:30 +08:00
parent ed5269ba98
commit d5457c040a
2 changed files with 13 additions and 2 deletions

View File

@@ -260,6 +260,7 @@ class Runner(object):
if teardown_hooks:
self.session_context.update_test_variables("response", resp_obj)
self.do_hook_actions(teardown_hooks, "teardown")
self.http_client_session.update_last_req_resp_record(resp_obj)
# extract
extractors = test_dict.get("extract", {})