From 32f95b0fa7a691e5670c907f5f606719feb22bd0 Mon Sep 17 00:00:00 2001 From: httprunner 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", [])