---
title: "TestContext"
description: "Provides storage of test related entities that must be accessible by anything other than
[ComposeUiTest] and friends, for example the [InputDispatcher] or the implementation of some
assertions and actions."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
class TestContext internal constructor(internal val testOwner: TestOwner)
```


Provides storage of test related entities that must be accessible by anything other than
`ComposeUiTest` and friends, for example the `InputDispatcher` or the implementation of some
assertions and actions.



