List Test Cases
list_test_casesList test cases from a QA Sphere project with filters for tags, priorities, folders, search, and pagination. Supports draft/type and custom field filtering.
Instructions
List test cases from a project in QA Sphere. Supports pagination and various filtering options. Usually it makes sense to call get_project tool first to get the project context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Filter by tag IDs | |
| draft | No | Filter draft vs published test cases | |
| limit | No | Maximum number of test cases to return (0-5000, defaults to 20). Use 0 to fetch only the total count | |
| types | No | Filter by test case type | |
| offset | No | Number of test cases to skip before returning results (defaults to 0) | |
| search | No | Search term to filter test cases | |
| folders | No | Filter by folder IDs | |
| include | No | Related data to include in the response (not present by default) | |
| sortField | No | Field to sort results by | |
| sortOrder | No | Sort direction (ascending or descending). Requires sortField. | |
| priorities | No | Filter by priority levels | |
| projectCode | Yes | Project code identifier (e.g., BDI) | |
| customFields | No | Filter by custom field values. Keys are custom field system names (without the `cf_` prefix); values are arrays of allowed values. | |
| requirementIds | No | Filter by requirement IDs | |
| templateTCaseIds | No | Filter filled test cases by their parent template test case IDs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | List of test cases | |
| limit | Yes | Limit applied to the query | |
| total | Yes | Total number of filtered test cases | |
| offset | Yes | Offset applied to the query |