mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-27 03:10:08 +08:00
feat: convert YAML/JSON testcase to python testcase
This commit is contained in:
11
httprunner/loader_test.py
Normal file
11
httprunner/loader_test.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import unittest
|
||||
from httprunner.new_loader import load_testcase_file
|
||||
|
||||
|
||||
class TestLoader(unittest.TestCase):
|
||||
|
||||
def test_load_testcase_file(self):
|
||||
path = "examples/postman_echo/request_methods/request_with_variables.yml"
|
||||
testcase = load_testcase_file(path)
|
||||
self.assertEqual(testcase.config.name, "request methods testcase with variables")
|
||||
self.assertEqual(len(testcase.teststeps), 3)
|
||||
Reference in New Issue
Block a user