mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-06 16:07:45 +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):
|
def __init(self):
|
||||||
init_logger()
|
init_logger()
|
||||||
self.__config = self.config.struct()
|
self.__config = self.config.struct()
|
||||||
self.__session_variables = {}
|
self.__session_variables = self.__session_variables or {}
|
||||||
self.__start_at = 0
|
self.__start_at = 0
|
||||||
self.__duration = 0
|
self.__duration = 0
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ from httprunner.step_request import call_hooks
|
|||||||
def run_step_testcase(runner: HttpRunner, step: TStep) -> StepResult:
|
def run_step_testcase(runner: HttpRunner, step: TStep) -> StepResult:
|
||||||
"""run teststep: referenced testcase"""
|
"""run teststep: referenced testcase"""
|
||||||
step_result = StepResult(name=step.name)
|
step_result = StepResult(name=step.name)
|
||||||
step_variables = step.variables
|
step_variables = runner.merge_step_variables(step.variables)
|
||||||
step_export = step.export
|
step_export = step.export
|
||||||
|
|
||||||
# setup hooks
|
# setup hooks
|
||||||
|
|||||||
Reference in New Issue
Block a user