透過集合功能整理內容 你可以依據偏好儲存及分類內容。

LegacySubprocessResultsReporter

public final class LegacySubprocessResultsReporter
extends SubprocessResultsReporter

對象
com.android.tradefed.result.SubprocessResultsReporter
com.android.tradefed.result.LegacySubprocessResultsReporter


子流程結果報告器的凍結實現,儘管其超類發生了變化,但仍應與早期版本的 TF/CTS(例如 8+)兼容。

可以動態注入此報告器以在舊的基於 TF 的測試套件中啟用子流程報告功能。

概括

公共構造函數

LegacySubprocessResultsReporter ()

公共方法

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IBuildInfo buildInfo)
void logAssociation (String dataName, LogFile logFile)

void setLogSaver (ILogSaver logSaver)
void testAssumptionFailure (TestIdentifier testId, String trace)
void testEnded (TestIdentifier testId, metrics) testEnded (TestIdentifier testId, metrics)
void testEnded (TestIdentifier testId, long endTime, metrics) testEnded (TestIdentifier testId, long endTime, metrics)
void testFailed (TestIdentifier testId, String reason)
void testIgnored (TestIdentifier testId)
void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics)

void testRunFailed (String reason)

void testRunStarted (String runName, int testCount)

void testStarted (TestIdentifier testId)
void testStarted (TestIdentifier testId, long startTime)

公共構造函數

LegacySubprocessResultsReporter

public LegacySubprocessResultsReporter ()

公共方法

調用結束

public void invocationEnded (long elapsedTime)

參數
elapsedTime long

調用失敗

public void invocationFailed (Throwable cause)

參數
cause Throwable

調用開始

public void invocationStarted (IBuildInfo buildInfo)

參數
buildInfo IBuildInfo

日誌關聯

public void logAssociation (String dataName, 
                LogFile logFile)

參數
dataName String

logFile LogFile

設置日誌保護程序

public void setLogSaver (ILogSaver logSaver)

參數
logSaver ILogSaver

測試假設失敗

public void testAssumptionFailure (TestIdentifier testId, 
                String trace)

參數
testId TestIdentifier

trace String

測試結束

public void testEnded (TestIdentifier testId, 
                 metrics)

參數
testId TestIdentifier

metrics

測試結束

public void testEnded (TestIdentifier testId, 
                long endTime, 
                 metrics)

參數
testId TestIdentifier

endTime long

metrics

測試失敗

public void testFailed (TestIdentifier testId, 
                String reason)

參數
testId TestIdentifier

reason String

測試忽略

public void testIgnored (TestIdentifier testId)

參數
testId TestIdentifier

測試日誌已保存

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

參數
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

測試模塊結束

public void testModuleEnded ()

測試模塊啟動

public void testModuleStarted (IInvocationContext moduleContext)

參數
moduleContext IInvocationContext

測試運行結束

public void testRunEnded (long time, 
                 runMetrics)

參數
time long

runMetrics

測試運行失敗

public void testRunFailed (String reason)

參數
reason String

測試運行開始

public void testRunStarted (String runName, 
                int testCount)

參數
runName String

testCount int

測試開始

public void testStarted (TestIdentifier testId)

參數
testId TestIdentifier

測試開始

public void testStarted (TestIdentifier testId, 
                long startTime)

參數
testId TestIdentifier

startTime long