Stay organized with collections Save and categorize content based on your preferences.

DeviceUnavailableMonitor

public final class DeviceUnavailableMonitor
extends Object implements ITestInvocationListener

java.lang.Object
   ↳ com.android.tradefed.invoker.DeviceUnavailableMonitor


This listener attempts to capture a test case level DNAE only.

Summary

Public constructors

DeviceUnavailableMonitor()

Public methods

DeviceNotAvailableException getUnavailableException()

Returns the exception if any was captured.

void invocationFailed(FailureDescription failure)

Reports an incomplete invocation due to some error condition.

void invocationFailed(Throwable cause)

Reports an incomplete invocation due to some error condition.

void invocationStarted(IInvocationContext context)

Reports the start of the test invocation.

void testFailed(TestDescription test, FailureDescription failure)

Reports the failure of a individual test case.

void testRunFailed(FailureDescription failure)

Reports test run failed to complete due to a failure described by FailureDescription.

Public constructors

DeviceUnavailableMonitor

public DeviceUnavailableMonitor ()

Public methods

getUnavailableException

public DeviceNotAvailableException getUnavailableException ()

Returns the exception if any was captured.

Returns
DeviceNotAvailableException

invocationFailed

public void invocationFailed (FailureDescription failure)

Reports an incomplete invocation due to some error condition.

Will be automatically called by the TradeFederation framework.

Parameters
failure FailureDescription: the FailureDescription describing the cause of the failure

invocationFailed

public void invocationFailed (Throwable cause)

Reports an incomplete invocation due to some error condition.

Will be automatically called by the TradeFederation framework.

Parameters
cause Throwable: the Throwable cause of the failure

invocationStarted

public void invocationStarted (IInvocationContext context)

Reports the start of the test invocation.

Will be automatically called by the TradeFederation framework. Reporters need to override this method to support multiple devices reporting.

Parameters
context IInvocationContext: information about the invocation

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Reports the failure of a individual test case.

Will be called between testStarted and testEnded.

Parameters
test TestDescription: identifies the test

failure FailureDescription: FailureDescription describing the failure and its context.

testRunFailed

public void testRunFailed (FailureDescription failure)

Reports test run failed to complete due to a failure described by FailureDescription.

Parameters
failure FailureDescription: FailureDescription describing the failure and its context.