search_testcases
Search and filter test cases in a specified test repository using paging, sorting, and JSON conditions to locate relevant cases.
Instructions
[test management] 搜索测试用例
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": {
"organizationId": "<organizationId>",
"testRepoId": "<testRepoId>"
},
"name": "search_testcases"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 分页参数,第几页 | |
| sort | No | 排序方式 | desc |
| orderBy | No | 排序字段 | gmtCreate |
| perPage | No | 分页参数,每页大小 | |
| conditions | No | 过滤条件,是一个json串 | |
| testRepoId | Yes | 用例库唯一标识 | |
| directoryId | No | 目录id | |
| organizationId | Yes | 组织ID |