Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

SubprocessResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
com.android.tradefed.result.SubprocessResultsReporter


实现ITestInvocationListener ,将其指定为result_reporter,并从子流程转发测试,测试运行,测试调用的结果。

摘要

公共建设者

SubprocessResultsReporter ()

公开方法

void close ()

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void printEvent (String key, Object event)

帮助程序先打印事件键,然后再打印json对象。

void setOutputTestLog (boolean outputTestLog)

设置我们是否应该输出记录的测试。

boolean supportGranularResults ()
void testAssumptionFailure (TestDescription testId, String trace)

void testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics)

void testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics)

void testFailed (TestDescription testId, String reason)

void testIgnored (TestDescription testId)

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

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

void testRunFailed (FailureDescription failure)

void testRunFailed (String reason)

void testRunStarted (String runName, int testCount, int attemptNumber)

void testRunStarted (String runName, int testCount)

void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)

void testRunStopped (long arg0)

void testStarted (TestDescription testId, long startTime)

void testStarted (TestDescription testId)

公共建设者

SubprocessResultsReporter

public SubprocessResultsReporter ()

公开方法

public void close ()

getSummary

public TestSummary getSummary ()

退货
TestSummary

调用结束

public void invocationEnded (long elapsedTime)

参量
elapsedTime long

调用失败

public void invocationFailed (FailureDescription failure)

参量
failure FailureDescription

调用失败

public void invocationFailed (Throwable cause)

参量
cause Throwable

调用开始

public void invocationStarted (IInvocationContext context)

参量
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

参量
dataName String

logFile LogFile

printEvent

public void printEvent (String key, 
                Object event)

帮助程序先打印事件键,然后再打印json对象。

参量
key String

event Object

setOutputTestLog

public void setOutputTestLog (boolean outputTestLog)

设置是否输出已记录的测试。

参量
outputTestLog boolean

supportGranularResults

public boolean supportGranularResults ()

退货
boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

参量
testId TestDescription

trace String

testEnded

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

参量
testId TestDescription

endTime long

metrics

testEnded

public void testEnded (TestDescription testId, 
                 metrics)

参量
testId TestDescription

metrics

测试失败

public void testFailed (TestDescription testId, 
                String reason)

参量
testId TestDescription

reason String

testIgnored

public void testIgnored (TestDescription testId)

参量
testId TestDescription

测试日志

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

参量
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

10

参量
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

参量
time long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

参量
failure FailureDescription

testRunFailed

public void testRunFailed (String reason)

参量
reason String

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

参量
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

参量
runName String

testCount int

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

参量
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long arg0)

参量
arg0 long

testStarted

public void testStarted (TestDescription testId, 
                long startTime)

参量
testId TestDescription

startTime long

testStarted

public void testStarted (TestDescription testId)

参量
testId TestDescription