ITestSummaryListener

public interface ITestSummaryListener
implements ITestInvocationListener

com.android.tradefed.result.ITestSummaryListener


可讓 ITestInvocationListener 透過摘要交換部分有限資訊的介面。

摘要

公用方法

default void putEarlySummary( summaries)

傳遞非空值 TestSummaryERROR(/List),這些 TestSummary 可能會從任何 ITestInvocationListener 傳回,並做為設定的一部分進行例項化。

default void putSummary( summaries)

傳遞非空值 TestSummaryERROR(/List),這些 TestSummary 可能會從任何 ITestInvocationListener 傳回,而這些 ITestInvocationListener 會在設定中以例項化方式傳回。

公用方法

putEarlySummary

public void putEarlySummary ( summaries)

傳遞非空值 TestSummaryERROR(/List),這些 TestSummary 可能會從任何 ITestInvocationListener 傳回,並做為設定的一部分進行例項化。早期摘要會在 ITestInvocationListener.invocationStarted(com.android.tradefed.invoker.IInvocationContext) 之後產生,並可在透過 ERROR(/#putSummary(List)) 叫用結束時完成。

這個方法會在 ITestInvocationListener.invocationStarted(com.android.tradefed.invoker.IInvocationContext) 之前呼叫,並包含先前設定的事件監聽器的所有摘要。

參數
summaries :目前設定中 ITestInvocationListener 的非空值 TestSummaryERROR(/List)

putSummary

public void putSummary ( summaries)

傳遞非空值 TestSummaryERROR(/List),這些 TestSummary 可能會從任何 ITestInvocationListener 傳回,並做為設定的一部分進行例項化。

參數
summaries :目前設定中 ITestInvocationListener 的非空值 TestSummaryERROR(/List)