Google 致力于为黑人社区推动种族平等。查看具体举措

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