QMetry: Fetch Test Suites for Test Case
qmetry_fetch_test_suites_for_test_caseRetrieves test suites available for linking to test cases in QMetry, supporting folder filtering and pagination.
Instructions
Get test suites that can be linked to test cases in QMetry with automatic viewId resolution
Toolset: Test Suites
Parameters:
projectKey (string): Project key - unique identifier for the project (default: "default")
baseUrl (string): The base URL for the QMetry instance (must be a valid URL)
tsFolderID (number): Test Suite folder ID. CRITICAL: the parameter name is 'tsFolderID' — do NOT use 'testSuiteFolderId', 'folderId', 'folderID', or other variants. Accepts a string or number. Get from project info response → rootFolders.TS.id. Use FETCH_PROJECT_INFO tool first if not provided by user.
viewId (number): ViewId for test suite folders - SYSTEM AUTOMATICALLY RESOLVES THIS. Leave empty unless you have a specific viewId. System will fetch project info using the projectKey and extract latestViews.TSFS.viewId automatically. Manual viewId only needed if you want to override the automatic resolution.
start (number): Start index for pagination - defaults to 0 (default: 0)
page (number): Page number to return (starts from 1) (default: 1)
limit (number): Number of records (default 10). (default: 10)
getColumns (boolean): Whether to get column information in response. (default: true)
filter (string): Filter criteria as JSON string (default '[]') (default: "[]")
Output Description: JSON object with test suites array and pagination metadata
Use Cases: 1. Get test suites available for linking with test cases 2. Find appropriate test suites for test case organization 3. Browse test suites in specific folders for better management 4. Filter test suites by release, cycle, or archive status 5. Organize test execution by grouping test cases into test suites 6. Plan test suite structure for comprehensive test coverage 7. Manage test case categorization for reporting purposes 8. Search for existing test suites before creating new ones 9. Get root test suite folder contents using project info
Examples:
Get test suites from root folder using auto-resolved viewId
{
"tsFolderID": 113557
}Expected Output: List of test suites available in the root test suite folder with auto-resolved viewId
Get test suites with custom pagination and auto-resolved viewId
{
"tsFolderID": 113557,
"page": 1,
"limit": 25
}Expected Output: Paginated list of test suites with 20 items per page
Filter test suites by release with auto-resolved viewId
{
"tsFolderID": 113557,
"filter": "[{\"type\":\"list\",\"value\":[55178],\"field\":\"release\"}]"
}Expected Output: Test suites associated with Release 8.12 (ID: 55178)
Filter test suites by cycle with auto-resolved viewId
{
"tsFolderID": 113557,
"filter": "[{\"type\":\"list\",\"value\":[111577],\"field\":\"cycle\"}]"
}Expected Output: Test suites associated with Cycle 8.12.1 (ID: 111577)
Get only active (non-archived) test suites
{
"tsFolderID": 113557,
"filter": "[{\"value\":[0],\"type\":\"list\",\"field\":\"isArchived\"}]"
}Expected Output: List of active test suites (not archived)
Filter test suites by release and cycle
{
"tsFolderID": 113557,
"filter": "[{\"type\":\"list\",\"value\":[55178],\"field\":\"release\"},{\"type\":\"list\",\"value\":[111577],\"field\":\"cycle\"}]"
}Expected Output: Test suites associated with both Release 8.12 (ID: 55178) and Cycle 8.12.1 (ID: 111577)
Get test suites with column information
{
"tsFolderID": 113557,
"getColumns": true
}Expected Output: Test suites list with detailed column metadata for better interpretation
Search test suites from specific sub-folder with manual viewId
{
"tsFolderID": 42,
"viewId": 104316
}Expected Output: Test suites available in specific folder ID 42 for test case linking
Hints: 1. CRITICAL: tsFolderID is REQUIRED - Test Suite folder ID will be auto-resolved if not provided 2. viewId will be AUTOMATICALLY RESOLVED from project info if not provided 3. HOW TO GET tsFolderID: 4. 1. Call FETCH_PROJECT_INFO tool first to get project configuration 5. 2. From the response, use rootFolders.TS.id for the root test suite folder 6. 3. Example: rootFolders.TS.id = 113557 (MAC project root TS folder) 7. 4. If user doesn't specify tsFolderID, automatically use rootFolders.TS.id from project info 8. VIEWID AUTO-RESOLUTION: 9. 1. System automatically fetches project info using the projectKey 10. 2. Extracts latestViews.TSFS.viewId automatically 11. 3. Example: latestViews.TSFS.viewId = 104316 (MAC project TSFS view) 12. 4. Manual viewId only needed if you want to override the automatic resolution 13. WORKFLOW: System automatically handles project info if tsFolderID or viewId is not provided 14. PROJECT INFO STRUCTURE: clientData.rootFolders.TS.id contains the root test suite folder ID 15. PROJECT INFO STRUCTURE: latestViews.TSFS.viewId contains the test suite folder view ID 16. For sub-folders: Use specific folder IDs if you know them, or call folder listing APIs 17. FILTER CAPABILITIES: Same as other QMetry list operations 18. FILTER FIELDS: release, cycle, isArchived, name, status, priority 19. RELEASE/CYCLE FILTERING: Use numeric IDs in list format (get from FETCH_RELEASES_AND_CYCLES) 20. ARCHIVE FILTERING: 0=Active, 1=Archived 21. getColumns=true provides additional metadata for result interpretation 22. Multiple filter conditions are combined with AND logic 23. Pagination supported for large result sets (start, page, limit parameters) 24. This tool helps organize test cases into logical test suites 25. Essential for test execution planning and test case management 26. Use this before creating new test suites to check existing ones
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number to return (starts from 1) | |
| limit | No | Number of records (default 10). | |
| start | No | Start index for pagination - defaults to 0 | |
| filter | No | Filter criteria as JSON string (default '[]') | [] |
| viewId | No | ViewId for test suite folders - SYSTEM AUTOMATICALLY RESOLVES THIS. Leave empty unless you have a specific viewId. System will fetch project info using the projectKey and extract latestViews.TSFS.viewId automatically. Manual viewId only needed if you want to override the automatic resolution. | |
| baseUrl | No | The base URL for the QMetry instance (must be a valid URL) | |
| getColumns | No | Whether to get column information in response. | |
| projectKey | No | Project key - unique identifier for the project | default |
| tsFolderID | No | Test Suite folder ID. CRITICAL: the parameter name is 'tsFolderID' — do NOT use 'testSuiteFolderId', 'folderId', 'folderID', or other variants. Accepts a string or number. Get from project info response → rootFolders.TS.id. Use FETCH_PROJECT_INFO tool first if not provided by user. |