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

# Test Service

> Test Service API methods in the Galtea SDK

The Test Service in the Galtea SDK allows you to manage [tests](/concepts/product/test) for evaluating your products.
This Service is exposed by the `galtea.tests` object.

<Info>
  Remember that we will be using the `galtea` object. More information [here](/sdk/api/galtea).
</Info>

## Quick Example

First, initialize the Galtea SDK:

```python theme={"system"}
galtea = Galtea(api_key="YOUR_API_KEY")
```

Create a test:

```python theme={"system"}
test = galtea.tests.create(
    name=test_name,
    type="ACCURACY",
    product_id=product_id,
    ground_truth_file_path="path/to/knowledge.md",
    language="english",
    max_test_cases=5,
)
```

List tests for a product:

```python theme={"system"}
tests = galtea.tests.list(product_id=product_id, limit=10)
```

Get a test by ID:

```python theme={"system"}
test = galtea.tests.get(test_id=test_id)
```

## Service Methods

* [Create Test](/sdk/api/test/create)
* [Listing Tests](/sdk/api/test/list)
* [Retrieving Test](/sdk/api/test/get)
* [Retrieving Test By Name](/sdk/api/test/get-by-name)
* [Updating Test](/sdk/api/test/update)
* [Deleting Test](/sdk/api/test/delete)
* [Downloading Test](/sdk/api/test/download)

## Related

<Card title="Test" icon="clipboard-list" iconType="solid" href="/concepts/product/test">
  A set of test cases for evaluating product performance
</Card>
