> ## 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.

# Retrieve a Test Suite

> Get a test suite by ID or fully qualified name

# Retrieve a Test Suite

Get a single test suite by its unique ID or fully qualified name.

## Get by ID

**id** `string` *required*

UUID of the test suite to retrieve.

**fields** `string`

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

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

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

## Get by Fully Qualified Name

Use `GET /v1/dataQuality/testSuites/name/{fqn}` to retrieve by fully qualified name.

**fqn** `string` *required*

Fully qualified name of the test suite.

**fields** `string`

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

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

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

```python GET /v1/dataQuality/testSuites/{id} 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"
)

# Get by ID
ts = TestSuites.retrieve("e86a9a11-852f-4bac-b5a7-993b2bbbb572")
print(f"{ts.displayName} (basic: {ts.basic})")

# Get by ID with fields
ts = TestSuites.retrieve(
    "e86a9a11-852f-4bac-b5a7-993b2bbbb572",
    fields=["owners", "tests"]
)

# Get by fully qualified name
ts = TestSuites.retrieve_by_name("sample_data.ecommerce_db.shopify.dim_address.testSuite")
```

```java GET /v1/dataQuality/testSuites/{id} theme={null}
// client is an initialized OpenMetadataClient.
var testSuite = client.testSuites().get("e86a9a11-852f-4bac-b5a7-993b2bbbb572");

// Get by ID with fields
var testSuiteWithFields = client.testSuites().get(
    "e86a9a11-852f-4bac-b5a7-993b2bbbb572",
    "owners,tests");

// Get by fully qualified name
var testSuiteByName = client.testSuites().getByName("sample_data.ecommerce_db.shopify.dim_address.testSuite");

// Get by name with fields
var testSuiteByNameWithFields = client.testSuites().getByName(
    "sample_data.ecommerce_db.shopify.dim_address.testSuite",
    "owners,tests");
```

```bash GET /v1/dataQuality/testSuites/{id} theme={null}
# Get by ID
curl "{base_url}/api/v1/dataQuality/testSuites/e86a9a11-852f-4bac-b5a7-993b2bbbb572" \
  -H "Authorization: Bearer {access_token}"

# Get by ID with fields
curl "{base_url}/api/v1/dataQuality/testSuites/e86a9a11-852f-4bac-b5a7-993b2bbbb572?fields=owners,tests" \
  -H "Authorization: Bearer {access_token}"

# Get by name
curl "{base_url}/api/v1/dataQuality/testSuites/name/sample_data.ecommerce_db.shopify.dim_address.testSuite" \
  -H "Authorization: Bearer {access_token}"
```

```json Response theme={null}
{
  "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
}
```

***

## Returns

Returns a test suite object with all requested fields populated.

## Response

**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.

**description** `string`

Description of the test suite.

**basic** `boolean`

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

**version** `number`

Version number for the entity.

**owners** `array`

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

**tests** `array`

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

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to view this test suite |
| `404` | `NOT_FOUND` | Test suite with given ID or FQN does not exist |


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