change: python testcase template

This commit is contained in:
debugtalk
2020-05-14 22:34:18 +08:00
parent 202f040c1c
commit 6ebbc81fd1
13 changed files with 575 additions and 363 deletions

View File

@@ -1,14 +1,18 @@
# NOTICE: Generated By HttpRunner. DO'NOT EDIT!
import unittest
from httprunner.runner import TestCaseRunner
from httprunner.schema import TestsConfig, TestStep
class TestCaseRequestWithVariables(TestCaseRunner):
class TestCaseRequestWithVariables(unittest.TestCase):
config = TestsConfig(
**{
"name": "request methods testcase with variables",
"variables": {"foo1": "session_bar1"},
"base_url": "https://postman-echo.com",
"verify": False,
"path": "examples/postman_echo/request_methods/request_with_variables_test.py",
}
)
@@ -77,6 +81,5 @@ class TestCaseRequestWithVariables(TestCaseRunner):
),
]
if __name__ == "__main__":
TestCaseRequestWithVariables().run()
def test_start(self):
TestCaseRunner(self.config, self.teststeps).run()