Create test case
Create a Test Case work item with numbered steps (action and expected result), optionally added to a suite.
Command in the Azure DevOps toolkit · id ooa.azure_devops/create_test_case · 13 inputs (4 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Organization address (URL) | String | Yes | Organization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server. | |
| Personal access token | Credential | Yes | Personal access token from the vault, with the scopes this action needs (e.g. Work Items read and write); a Microsoft Entra ID token works too. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Project | String | Yes | Project name, e.g. Finance Portal. | |
| Title | String | Yes | Test case title. | |
| Steps | List | No | Steps in order: text, or {"action": ..., "expected": ...}, e.g. [{"action": "Open the invoice", "expected": "Total shows 120.50"}]. | |
| Fields | Dictionary | No | Other fields, e.g. {"priority": 2, "area_path": "Finance Portal"}. | |
| Plan ID | Number | No | Add the new test case to this plan's suite (with suite_id). | |
| Suite ID | Number | No | Suite to add it to. | |
| Area path | String | No | Area path; the project's root area when empty. | |
| Iteration path | String | No | Iteration (sprint) path; the project's root iteration when empty. | |
| Priority | Number | No | Priority from 1 (highest) to 4 (lowest); 2 in new steps (G5). | |
| Automation status | String | No | Whether the test is automated: Not Automated, Planned or Automated. | |
| Steps table | Table | No | The steps as a table with the columns action and expected, one row per step (G5); used instead of steps. |
Outputs
| Output | Type | What it is |
|---|---|---|
| id | Number | Work item id of the test case. |