ITestSummaryListener

public interface ITestSummaryListener
implements ITestInvocationListener

com.android.tradefed.result.ITestSummaryListener


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

摘要

公用方法

default void putEarlySummary( summaries)

傳遞非空值的 TestSummary ERROR(/List),這些 TestSummary 可能已從任何 ITestInvocationListener 傳回,並在設定中例項化。

default void putSummary( summaries)

傳遞非空值的 TestSummary ERROR(/List),這些 TestSummary 可能已從任何 ITestInvocationListener 傳回,並在設定中例項化。

公用方法

putEarlySummary

public void putEarlySummary ( summaries)

傳遞非空值的 TestSummary ERROR(/List),這些 TestSummary 可能已從任何 ITestInvocationListener 傳回,並在設定中例項化。系統會在 ITestInvocationListener.invocationStarted(com.android.tradefed.invoker.IInvocationContext) 後生成初步摘要,並在呼叫結束時透過 ERROR(/#putSummary(List)) 完成摘要。

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

參數
summaries :來自目前設定的 ITestInvocationListener 的非空值 TestSummary ERROR(/List)

putSummary

public void putSummary ( summaries)

傳遞非空值的 TestSummary ERROR(/List),這些 TestSummary 可能已從任何 ITestInvocationListener 傳回,並在設定中例項化。

參數
summaries :來自目前設定的 ITestInvocationListener 的非空值 TestSummary ERROR(/List)