mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-06 20:32:44 +08:00
fix: failed to use parameters in reference testcase
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user