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:
debugtalk
2022-06-17 12:20:15 +08:00
committed by GitHub
18 changed files with 59 additions and 23 deletions
+1 -1
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
+1 -1
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
+2 -1
View File
@@ -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):