mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-15 12:27:59 +08:00
refactor: use HttpRunner as testcase base class
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user