From 6f3d8325b4adeda80e648e4b3621d0e03f795e90 Mon Sep 17 00:00:00 2001 From: "duanchao.bill" Date: Fri, 10 Jun 2022 21:36:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8B=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- httprunner/step_request.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httprunner/step_request.py b/httprunner/step_request.py index a30b8946..f872470e 100644 --- a/httprunner/step_request.py +++ b/httprunner/step_request.py @@ -67,13 +67,13 @@ def call_hooks( def run_step_request(runner: HttpRunner, step: TStep) -> StepResult: """run teststep: request""" - step.variables = runner.merge_step_variables(step.variables) - step_start_variables = step.variables + step_result = StepResult( name=step.name, success=False, ) + step.variables = runner.merge_step_variables(step.variables) start_time = time.time()