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 TestCaseHardcode(TestCase):
class TestCaseHardcode(HttpRunner):
config = TConfig(
**{
"name": "request methods testcase in hardcode",
@@ -72,5 +72,6 @@ class TestCaseHardcode(TestCase):
),
]
def test_start(self):
HttpRunner(self.config, self.teststeps).run()
if __name__ == "__main__":
TestCaseHardcode().test_start()