Stay organized with collections
Save and categorize content based on your preferences.
public interface TestFrameworkException
Known indirect subclasses
AmbiguousViewMatcherException,
AppNotIdleException,
IdlingResourceTimeoutException,
InjectEventSecurityException,
NoActivityResumedException,
NoMatchingRootException,
NoMatchingViewException,
NoRemoteEspressoInstanceException,
PerformException,
RemoteEspressoException,
RemoteProtocolException,
RootViewException
Marker interface for identifying an exception as coming from a test framework.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# TestFrameworkException\n======================\n\nArtifact: [androidx.test:monitor](/jetpack/androidx/releases/test) \n[View Source](https://cs.android.com/search?q=file:androidx/test/platform/TestFrameworkException.java+class:androidx.test.platform.TestFrameworkException)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/test/platform/TestFrameworkException \"View this page in Kotlin\") \\|Java\n\n\n```\npublic interface TestFrameworkException\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[EspressoException](/reference/androidx/test/espresso/EspressoException), [InjectEventSecurityException](/reference/androidx/test/platform/ui/InjectEventSecurityException), [UnsupportedDeviceOperationException](/reference/androidx/test/platform/device/UnsupportedDeviceOperationException) \n\n|---------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| [EspressoException](/reference/androidx/test/espresso/EspressoException) | Used for identifying an exception as coming from the [Espresso](/reference/androidx/test/espresso/Espresso) framework. |\n| [InjectEventSecurityException](/reference/androidx/test/platform/ui/InjectEventSecurityException) | An checked [Exception](https://developer.android.com/reference/java/lang/Exception.html) indicating that event injection failed with a . |\n| [UnsupportedDeviceOperationException](/reference/androidx/test/platform/device/UnsupportedDeviceOperationException) | An exception which indicates that the device selected does not support an operation called on it. |\n\nKnown indirect subclasses \n[AmbiguousViewMatcherException](/reference/androidx/test/espresso/AmbiguousViewMatcherException), [AppNotIdleException](/reference/androidx/test/espresso/AppNotIdleException), [IdlingResourceTimeoutException](/reference/androidx/test/espresso/IdlingResourceTimeoutException), [InjectEventSecurityException](/reference/androidx/test/espresso/InjectEventSecurityException), [NoActivityResumedException](/reference/androidx/test/espresso/NoActivityResumedException), [NoMatchingRootException](/reference/androidx/test/espresso/NoMatchingRootException), [NoMatchingViewException](/reference/androidx/test/espresso/NoMatchingViewException), [NoRemoteEspressoInstanceException](/reference/androidx/test/espresso/remote/NoRemoteEspressoInstanceException), [PerformException](/reference/androidx/test/espresso/PerformException), [RemoteEspressoException](/reference/androidx/test/espresso/remote/RemoteEspressoException), [RemoteProtocolException](/reference/androidx/test/espresso/remote/RemoteProtocolException), [RootViewException](/reference/androidx/test/espresso/RootViewException) \n\n|-----------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AmbiguousViewMatcherException](/reference/androidx/test/espresso/AmbiguousViewMatcherException) | An exception which indicates that a `Matcher\u003cView\u003e` matched multiple views in the hierarchy when only one view was expected. |\n| [AppNotIdleException](/reference/androidx/test/espresso/AppNotIdleException) | An exception which indicates that the App has not become idle even after the specified duration. |\n| [IdlingResourceTimeoutException](/reference/androidx/test/espresso/IdlingResourceTimeoutException) | Indicates that an [IdlingResource](/reference/androidx/test/espresso/IdlingResource), which has been registered with the framework, has not idled within the allowed time. |\n| [InjectEventSecurityException](/reference/androidx/test/espresso/InjectEventSecurityException) | An checked [Exception](https://developer.android.com/reference/java/lang/Exception.html) indicating that event injection failed with a . |\n| [NoActivityResumedException](/reference/androidx/test/espresso/NoActivityResumedException) | An exception which indicates that there are no activities in stage RESUMED. |\n| [NoMatchingRootException](/reference/androidx/test/espresso/NoMatchingRootException) | Indicates that a given matcher did not match any [Root](/reference/androidx/test/espresso/Root)s (windows) from those that are currently available. |\n| [NoMatchingViewException](/reference/androidx/test/espresso/NoMatchingViewException) | Indicates that a given matcher did not match any elements in the view hierarchy. |\n| [NoRemoteEspressoInstanceException](/reference/androidx/test/espresso/remote/NoRemoteEspressoInstanceException) | An [Exception](https://developer.android.com/reference/java/lang/Exception.html) which indicates that there are no remote Espresso clients present. |\n| [PerformException](/reference/androidx/test/espresso/PerformException) | Indicates that an exception occurred while performing a ViewAction on the UI thread. |\n| [RemoteEspressoException](/reference/androidx/test/espresso/remote/RemoteEspressoException) | Espresso exception representing any runtime related errors in a multi-process environment |\n| [RemoteProtocolException](/reference/androidx/test/espresso/remote/RemoteProtocolException) | Espresso exception representing any protocol related errors in a multi-process environment |\n| [RootViewException](/reference/androidx/test/espresso/RootViewException) | An [EspressoException](/reference/androidx/test/espresso/EspressoException) that can provide a Root View. |\n\n*** ** * ** ***\n\nMarker interface for identifying an exception as coming from a test framework."]]