Skip to main content
Export all test case definitions from your project, including names, goals, expected results, and step-by-step instructions. This is useful for migrating to another test management tool (for example Jira with Xray or Zephyr), keeping external backups, or building custom reports.

What Gets Exported

The List Test Cases endpoint returns published test cases. Each test case includes its name, goal, expected result, labels, enabled state, classification, and the most recent run status. When you pass includeSteps=true, each test case also includes a steps array with step-by-step instructions. See the List Test Cases reference for the full response schema.
Steps are opt-in via the includeSteps query parameter to keep default responses small. Test cases that are defined by a goal only (without a step breakdown) return an empty steps array.

Export via the API

Pass includeSteps=true to include the full step definitions:
The endpoint returns up to 1000 test cases per request. If your project has more, page through the results with offset:
See the API Introduction for how to create an API token. With an organization-scoped key, also pass projectShortId as a query parameter.

Export via the CLI

The qatech CLI wraps the same endpoint:
See qatech test-cases for all options.

Converting to CSV

Many test management importers expect one row per step. This jq one-liner converts the JSON export into that shape:
For a one-row-per-test-case shape with numbered steps in a single column: