mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 09:49:33 +08:00
change: python testcase template
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user