DeviceUnavailableMonitor

public final class DeviceUnavailableMonitor
extends Object implements ITestInvocationListener

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


這個事件監聽器只會嘗試擷取測試案例層級的 DNAE。

摘要

公用建構函式

DeviceUnavailableMonitor()

公用方法

DeviceNotAvailableException getUnavailableException()

如果擷取到任何例外狀況,則傳回例外狀況。

void invocationFailed(FailureDescription failure)
void invocationFailed(Throwable cause)
void invocationStarted(IInvocationContext context)
void testFailed(TestDescription test, FailureDescription failure)
void testRunFailed(FailureDescription failure)

公用建構函式

DeviceUnavailableMonitor

public DeviceUnavailableMonitor ()

公用方法

getUnavailableException

public DeviceNotAvailableException getUnavailableException ()

如果擷取到任何例外狀況,則傳回例外狀況。

傳回
DeviceNotAvailableException

叫用失敗

public void invocationFailed (FailureDescription failure)

參數
failure FailureDescription

叫用失敗

public void invocationFailed (Throwable cause)

參數
cause Throwable

叫用

public void invocationStarted (IInvocationContext context)

參數
context IInvocationContext

測試失敗

public void testFailed (TestDescription test, 
                FailureDescription failure)

參數
test TestDescription

failure FailureDescription

testRunFailed

public void testRunFailed (FailureDescription failure)

參數
failure FailureDescription