> For the complete documentation index, see [llms.txt](https://docs.dbnl.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-experimental-functions/get_test_sessions.md). Agents can also search and read this documentation through its [MCP server](https://docs.dbnl.com/~gitbook/mcp).

# get\_test\_sessions

Retrieve all Test Sessions for a given Project

<pre class="language-python"><code class="lang-python">dbnl.experimental.get_test_sessions(
    *,
    project: Project,
) -> list[<a data-footnote-ref href="#user-content-fn-1">TestSession</a>]:
</code></pre>

## Parameters

| Arguments | Description                                            |
| --------- | ------------------------------------------------------ |
| `project` | The dbnl Project associated with all the TestSessions. |

## Returns

| Type                | Description                                                                                                                        |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `List[TestSession]` | A list of [TestSessions](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-objects/testsession.md) in the Project. |

[^1]: [TestSession](https://docs.dbnl.com/v0.20.x/using-distributional/python-sdk/sdk-objects/testsession.md)
