> ## Documentation Index
> Fetch the complete documentation index at: https://openmetadata-fix-mcp-oauth-security-docs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk Export Test Cases

> Learn to bulk export data quality test cases in OpenMetadata as CSV files, at the table, test suite, or platform-wide scope.

# Bulk Export Test Cases

Exporting test cases to a CSV file gives you a copy of your test case metadata to review offline, or a template you can edit and re-import. You can export test cases for a single table, for a test suite, or across your entire platform.

For more information about what each column in the file means, see the [CSV Field Reference](/v1.13.x/how-to-guides/data-quality-observability/quality/import-export-test-cases).

## Bulk Export Test Cases for a Table

To export test cases scoped to a single table:

1. In the left navigation menu, click **Explore**, and select the table whose test cases you want to export.
2. Navigate to the **Data Observability** tab.
3. In the **Data Quality** tab, click **Test Cases** if not selected.
   <img src="https://mintcdn.com/openmetadata-fix-mcp-oauth-security-docs/mXCKuueTSiQcri6n/public/images/how-to-guides/data-quality-observability/quality/table-test-cases.png?fit=max&auto=format&n=mXCKuueTSiQcri6n&q=85&s=44491f07154ec458acf360def7fd208e" alt="Access Table Test Cases" width="2528" height="1390" data-path="public/images/how-to-guides/data-quality-observability/quality/table-test-cases.png" />
4. Click the **⋮** icon and click **Export**.
   <img src="https://mintcdn.com/openmetadata-fix-mcp-oauth-security-docs/mXCKuueTSiQcri6n/public/images/how-to-guides/data-quality-observability/quality/select-export-table.png?fit=max&auto=format&n=mXCKuueTSiQcri6n&q=85&s=e928e2621f9489cbb4d6107ffae0e41e" alt="Export test cases for a single table" width="2448" height="646" data-path="public/images/how-to-guides/data-quality-observability/quality/select-export-table.png" />
5. In the export dialog, confirm the CSV format and start the export.
   <img src="https://mintcdn.com/openmetadata-fix-mcp-oauth-security-docs/mXCKuueTSiQcri6n/public/images/how-to-guides/data-quality-observability/quality/confirm-export.png?fit=max&auto=format&n=mXCKuueTSiQcri6n&q=85&s=3fbff0684330f1884ab38a932e7f8ffe" alt="Confirm and start the export" width="1072" height="658" data-path="public/images/how-to-guides/data-quality-observability/quality/confirm-export.png" />
6. OpenMetadata generates the file in the background and downloads it once it's ready.

## Bulk Export Test Cases in a Suite

To export test cases scoped to a single test suite:

1. Navigate to **Data Observability** > **Data Quality**.
2. Click the **Test Suites** tab and switch to **Bundle Suites**.
   <img src="https://mintcdn.com/openmetadata-fix-mcp-oauth-security-docs/mXCKuueTSiQcri6n/public/images/how-to-guides/data-quality-observability/quality/test-suites-test-case.png?fit=max&auto=format&n=mXCKuueTSiQcri6n&q=85&s=88a94f65b9bbe0142cd9bb796f336bf2" alt="Select a bundle test suite" width="2996" height="1258" data-path="public/images/how-to-guides/data-quality-observability/quality/test-suites-test-case.png" />
3. Search and select the bundle suite whose test cases you want to export.
4. Click the **⋮** icon and click **Export**.
   <img src="https://mintcdn.com/openmetadata-fix-mcp-oauth-security-docs/mXCKuueTSiQcri6n/public/images/how-to-guides/data-quality-observability/quality/select-export-suite.png?fit=max&auto=format&n=mXCKuueTSiQcri6n&q=85&s=f954c936969d514b1665da061f71ee0a" alt="Export test cases for a test suite" width="2486" height="1132" data-path="public/images/how-to-guides/data-quality-observability/quality/select-export-suite.png" />
5. Repeat steps 5 to 6 from [Bulk Export Test Cases for a Table](#bulk-export-test-cases-for-a-table).

## Bulk Export All Test Cases

To export test cases across your entire OpenMetadata instance:

1. Navigate to **Data Observability** > **Data Quality**, and click **Test Cases**.
   <img src="https://mintcdn.com/openmetadata-fix-mcp-oauth-security-docs/mXCKuueTSiQcri6n/public/images/how-to-guides/data-quality-observability/quality/test-cases-tab.png?fit=max&auto=format&n=mXCKuueTSiQcri6n&q=85&s=55b7d1f09a2fa01fcf367738e5757485" alt="Test Cases Tab" width="2508" height="1284" data-path="public/images/how-to-guides/data-quality-observability/quality/test-cases-tab.png" />
2. Click the **⋮** icon and select **Export**.
   <img src="https://mintcdn.com/openmetadata-fix-mcp-oauth-security-docs/mXCKuueTSiQcri6n/public/images/how-to-guides/data-quality-observability/quality/select-export-test-cases.png?fit=max&auto=format&n=mXCKuueTSiQcri6n&q=85&s=002044731cf5330a9dd30734e7f8ca8c" alt="Export test cases platform-wide" width="2534" height="1302" data-path="public/images/how-to-guides/data-quality-observability/quality/select-export-test-cases.png" />
3. Repeat steps 5 to 6 from [Bulk Export Test Cases for a Table](#bulk-export-test-cases-for-a-table).

## Export Using API

You can also export test cases using the API with the following endpoints:

`GET /api/v1/dataQuality/testCases/name/{name}/export`

`GET /api/v1/dataQuality/testCases/name/{name}/exportAsync`

Replace `{name}` with the Fully Qualified Name (FQN) of the table or test suite you're exporting from, or with `*` to export every test case in the instance. The `exportAsync` endpoint runs the export as a background job and is what the UI uses. The `export` endpoint returns the CSV synchronously.
