> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# List Test Suites

> List all test suites with optional filtering and pagination

# List Test Suites

List all test suites with optional filtering and pagination.

## Query Parameters

**limit** `integer` (default: 10)

Maximum number of results to return (max: 1000000).

**before** `string`

Cursor for backward pagination.

**after** `string`

Cursor for forward pagination.

**fields** `string`

Comma-separated list of fields to include: `owners`, `tests`.

**include** `string` (default: non-deleted)

Include `all`, `deleted`, or `non-deleted` entities.

**testSuiteType** `string`

Filter by test suite type, for example `logical`. The older value `executable` is still accepted.

```python GET /v1/dataQuality/testSuites theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import TestSuites

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

# List first page
suites = TestSuites.list(limit=50)
for ts in suites.entities:
    print(f"{ts.displayName} (basic: {ts.basic})")

# List all with auto-pagination
for ts in TestSuites.list_all():
    print(f"{ts.fullyQualifiedName.root}")

# Filter by type
logical_suites = TestSuites.list(
    filters={"testSuiteType": "logical"},
    fields=["owners", "tests"],
    limit=50
)

for ts in logical_suites.entities:
    print(f"{ts.displayName}")
```

```java GET /v1/dataQuality/testSuites theme={null}
import org.openmetadata.sdk.models.ListParams;

// client is an initialized OpenMetadataClient.
// List first page
var params = new ListParams().setLimit(50);
var page = client.testSuites().list(params);
for (var item : page.getData()) {
    System.out.println(item.getDisplayName());
}

// Filter by type with fields
var filtered = new ListParams()
    .addFilter("testSuiteType", "logical")
    .setFields("owners,tests")
    .setLimit(50);
var filteredPage = client.testSuites().list(filtered);
for (var item : filteredPage.getData()) {
    System.out.println(item.getDisplayName());
}
```

```bash GET /v1/dataQuality/testSuites theme={null}
# List all
curl "{base_url}/api/v1/dataQuality/testSuites?limit=50" \
  -H "Authorization: Bearer {access_token}"

# Filter by type
curl "{base_url}/api/v1/dataQuality/testSuites?testSuiteType=logical&limit=50" \
  -H "Authorization: Bearer {access_token}"

# With fields
curl "{base_url}/api/v1/dataQuality/testSuites?fields=owners,tests&limit=50" \
  -H "Authorization: Bearer {access_token}"
```

```json Response theme={null}
{
  "data": [
    {
      "id": "e86a9a11-852f-4bac-b5a7-993b2bbbb572",
      "name": "sample_data.ecommerce_db.shopify.dim_address.testSuite",
      "displayName": "Data Contract - dim_address_comprehensive_contract",
      "fullyQualifiedName": "sample_data.ecommerce_db.shopify.dim_address.testSuite",
      "version": 0.1,
      "updatedAt": 1769982757893,
      "updatedBy": "admin",
      "deleted": false,
      "owners": [],
      "basic": true
    }
  ],
  "paging": {
    "after": "...",
    "total": 5
  }
}
```

***

## Returns

Returns a paginated list of test suite objects. Use the `fields` parameter to request additional data.

## Response

**data** `array`

Array of test suite objects.

**properties**

**id** `string`

Unique identifier for the test suite (UUID format).

**name** `string`

Test suite name.

**fullyQualifiedName** `string`

Fully qualified name of the test suite.

**displayName** `string`

Human-readable display name.

**basic** `boolean`

`true` for a table-level (basic) test suite, `false` for a logical test suite.

**owners** `array`

List of owners. Only included when `fields` contains `owners`.

**tests** `array`

List of test case references. Only included when `fields` contains `tests`.

**paging** `object`

Pagination information.

**properties**

**total** `integer`

Total count of test suites matching the query.

**after** `string`

Cursor for the next page of results.

**before** `string`

Cursor for the previous page of results.

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to list test suites |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.