fix: failed to use parameters in reference testcase

This commit is contained in:
xucong053
2022-06-14 21:27:42 +08:00
parent ec345d9e53
commit 5731055606
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ class SessionRunner(object):
def __init(self):
init_logger()
self.__config = self.config.struct()
self.__session_variables = {}
self.__session_variables = self.__session_variables or {}
self.__start_at = 0
self.__duration = 0

View File

@@ -11,7 +11,7 @@ from httprunner.step_request import call_hooks
def run_step_testcase(runner: HttpRunner, step: TStep) -> StepResult:
"""run teststep: referenced testcase"""
step_result = StepResult(name=step.name)
step_variables = step.variables
step_variables = runner.merge_step_variables(step.variables)
step_export = step.export
# setup hooks