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

# Retrieving Test By Name

> Retrieve a specific test by its name.

## Returns

Returns a [Test](/concepts/product/test) object for the given product and test name.

## Example

```python theme={"system"}
test = galtea.tests.get_by_name(product_id=product_id, test_name=test_name)
```

## Parameters

<ResponseField name="product_id" type="string" required>
  The ID of the product for which you want to retrieve the test.
</ResponseField>

<ResponseField name="test_name" type="string" required>
  The name of the test you want to retrieve.
</ResponseField>

<ResponseField name="type" type="string" optional>
  The type of the test (e.g., `ACCURACY`, `SECURITY`). This is needed if multiple tests share the same name but have different types.
</ResponseField>
