|
@@ -14,7 +14,7 @@ path = Path(__file__).parent.glob("**/*.yaml")
|
|
|
def creat_case(yaml_path):
|
|
|
@pytest.mark.parametrize("arg_names", read_testcase(rf"{yaml_path}"))
|
|
|
def test_fun(self, arg_names):
|
|
|
- allure.dynamic.title(arg_names["name"])
|
|
|
+ # allure.dynamic.title(arg_names["name"])
|
|
|
RequestUtil("base_qccq_sc").standard_yaml(arg_names)
|
|
|
|
|
|
return test_fun
|
|
@@ -25,7 +25,9 @@ def creat_case(yaml_path):
|
|
|
class TestAPI:
|
|
|
pass
|
|
|
|
|
|
-
|
|
|
+data =[]
|
|
|
for yaml_path in path:
|
|
|
yaml_name = yaml_path.name[:-5]
|
|
|
+ data.append(yaml_path)
|
|
|
+ print(yaml_path)
|
|
|
setattr(TestAPI, yaml_name, creat_case(yaml_path))
|