add TeardownHooksFailure exception

This commit is contained in:
debugtalk
2018-07-27 11:41:59 +08:00
parent 10b6cbebce
commit 4c53150ebb
5 changed files with 42 additions and 5 deletions

View File

@@ -171,6 +171,7 @@ class Runner(object):
# teardown hooks
teardown_hooks = testcase_dict.get("teardown_hooks", [])
if teardown_hooks:
logger.log_info("start to run teardown hooks")
self.context.bind_testcase_variable("response", resp_obj)
self.do_hook_actions(teardown_hooks)