From e928f99dff51e882e60592a81fcdd5304ef1b20b Mon Sep 17 00:00:00 2001 From: debugtalk Date: Wed, 15 Nov 2017 18:46:57 +0800 Subject: [PATCH] add print exception --- httprunner/runner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/httprunner/runner.py b/httprunner/runner.py index e74f466f..7e6fd927 100644 --- a/httprunner/runner.py +++ b/httprunner/runner.py @@ -197,6 +197,9 @@ class Runner(object): response_time=0, exception=ex ) + else: + logging.exception( + "Exception occured in testcase: {}".format(testcase_dict.get("name"))) break output_variables_list = config_dict.get("output", [])