cloudtest__CreateApiTestSuiteByRepoFile
Creates an API test suite by importing a Swagger 2.0 YAML or JSON file from a repository branch, enabling tests to be generated from existing API specs.
Instructions
[CLOUDTEST] 通过导入仓库中的文件生成接口测试套
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"project_id": "<project_id>",
"repository_branch": "<repository_branch>",
"repository_id": "<repository_id>",
"testsuite_name": "<testsuite_name>"
},
"name": "cloudtest__CreateApiTestSuiteByRepoFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | 仓库中yaml或json文件的相对路径,仅支持swagger 2.0版本的yaml和json文件 | |
| project_id | Yes | 项目ID,固定长度32位字符(字母和数字)。 | |
| repository_id | Yes | 仓库id | |
| testsuite_name | Yes | 要生成的测试套名称 | |
| repository_branch | Yes | 仓库分支 |