mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
Merge pull request #1360 from xucong053/bugfix
fix: failed to use parameters in referenced testcase fix: failed to run testcase if python3 is not available on windows
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
|
||||
|
||||
@@ -9,7 +9,8 @@ from examples.postman_echo.request_methods.request_with_functions_test import (
|
||||
|
||||
class TestRunTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.runner = HttpRunner()
|
||||
self.runner = TestCaseRequestWithFunctions()
|
||||
self.runner.test_start()
|
||||
|
||||
def test_run_testcase_by_path(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user