ado_testsuites_create
Create a test suite in Azure DevOps with static, requirement-based, or dynamic (WIQL query) membership. Specify project, plan, name, and optional parent or requirement.
Instructions
Create a new suite inside a test plan. suiteType must be staticTestSuite (test cases added manually), requirementTestSuite (linked to one backlog item — requirementId required), or dynamicTestSuite (auto-populated from WIQL — queryString required, membership is read-only). Set parentSuiteId to the plan's rootSuiteId (from ado_testplans_create/get) to attach directly under root. Requires vso.test_write PAT scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Suite name | |
| planId | Yes | Test plan ID | |
| project | Yes | Project that owns the test plan | |
| suiteType | Yes | Suite type: staticTestSuite (test cases added manually), requirementTestSuite (linked to a single backlog item — requirementId required), dynamicTestSuite (auto-populated from WIQL query — queryString required, membership is read-only) | |
| queryString | No | WIQL SELECT statement for auto-populating the suite. Required when suiteType is dynamicTestSuite. | |
| parentSuiteId | No | Parent suite ID. Use the plan's rootSuiteId for top-level suites. Omit to attach under the root suite automatically. | |
| requirementId | No | Work item ID of the backlog item to link. Required when suiteType is requirementTestSuite. |