{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

androidx.compose.ui.test

Annotations

ExperimentalTestApi
InternalTestApi

Interfaces

AndroidComposeUiTest

Variant of ComposeUiTest for when you want to have access to the current activity of type A.

ComposeUiTest

A test environment that allows you to test and control composables, either in isolation or in applications.

IdlingResource

Represents a resource of an application under test which can cause asynchronous background work to happen during test execution (e.g. an http request in response to a button click).

InjectionScope

The receiver scope of all input injection lambdas offered in ui-test, such as performTouchInput and performMouseInput.

KeyInjectionScope

The receiver scope of the key input injection lambda from performKeyInput.

MainTestClock

The clock that drives frames, recompositions and launched effects in compose tests.

MouseInjectionScope

The receiver scope of the mouse input injection lambda from performMouseInput.

MultiModalInjectionScope

The receiver scope of the multi-modal input injection lambda from performMultiModalInput.

RotaryInjectionScope

The receiver scope of rotary input injection lambda from performRotaryScrollInput.

SemanticsNodeInteractionsProvider

Provides the main entry point into testing.

TestOwner

Provides necessary services to facilitate testing.

TouchInjectionScope

The receiver scope of the touch input injection lambda from performTouchInput.

Classes

ActionsKt
AndroidComposeUiTestEnvironment

A test environment that can run tests using the test receiver scope.

AndroidImageHelpersKt
AssertionsKt
BoundsAssertionsKt
ComposeTimeoutException

Thrown in cases where Compose test can't satisfy a condition in a defined time limit.

ComposeUiTestKt
FiltersKt
FindersKt
GestureScope

This class is deprecated. Replaced by TouchInjectionScope

GestureScopeKt
KeyInjectionScopeKt
KeyInputHelpersKt
MouseButton

Representation of a mouse button with its associated ID for the current platform.

MouseInjectionScopeKt
OutputKt
ScrollWheel

Representation of a mouse scroll wheel axis.

SelectionResult

Result of SemanticsSelector projection.

SelectorsKt
SemanticsMatcher

Wrapper for semantics matcher lambdas that allows to build string explaining to the developer what conditions were being tested.

SemanticsNodeInteraction

Represents a semantics node and the path to fetch it from the semantics tree.

SemanticsNodeInteractionCollection

Represents a collection of semantics nodes and the path to fetch them from the semantics tree.

SemanticsSelector

Projects the given set of nodes to a new set of nodes.

StateRestorationTester

Helps to test the state restoration for your Composable component.

TestContext
TestMonotonicFrameClock

A MonotonicFrameClock with a time source controlled by a kotlinx-coroutines-test TestCoroutineScheduler.

TestMonotonicFrameClockKt
TestOwnerKt
TextActionsKt
TouchInjectionScopeKt
MouseButton.Companion
ScrollWheel.Companion
SemanticsMatcher.Companion