refactor: use HttpRunner as testcase base class

This commit is contained in:
debugtalk
2020-05-15 20:05:17 +08:00
parent 80a600bccc
commit 2cd9eba6a3
12 changed files with 71 additions and 363 deletions

View File

@@ -1,8 +1,8 @@
# NOTICE: Generated By HttpRunner. DO'NOT EDIT!
from httprunner import HttpRunner, TConfig, TStep, TestCase
from httprunner import HttpRunner, TConfig, TStep
class TestCaseValidateWithFunctions(TestCase):
class TestCaseValidateWithFunctions(HttpRunner):
config = TConfig(
**{
"name": "request methods testcase: validate with functions",
@@ -38,5 +38,6 @@ class TestCaseValidateWithFunctions(TestCase):
),
]
def test_start(self):
HttpRunner(self.config, self.teststeps).run()
if __name__ == "__main__":
TestCaseValidateWithFunctions().test_start()