SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Известные прямые подклассы LegacySubprocessResultsReporter | Замороженная реализация репортера результатов подпроцесса, которая должна оставаться совместимой с более ранними версиями TF / CTS (например, 8+), несмотря на изменения в его суперклассе. |
|
Реализует ITestInvocationListener
быть указано как result_reporter и вперед от подпроцесса результаты тестов, тестовых прогонов, тестовых вызовов.
Резюме
Публичные методы |
---|
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 | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
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, FailureDescription failure) |
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 ()
invocationEnded
public void invocationEnded (long elapsedTime)
Параметры |
---|
elapsedTime | long |
invocationFailed
public void invocationFailed (FailureDescription failure)
Параметры |
---|
failure | FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
Параметры |
---|
cause | Throwable |
invocationStarted
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 ()
testAssumingFailure
public void testAssumptionFailure (TestDescription testId,
String trace)
Параметры |
---|
testId | TestDescription |
trace | String |
testAssumingFailure
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
Параметры |
---|
testId | TestDescription |
failure | FailureDescription |
testEnded
public void testEnded (TestDescription testId,
long endTime,
metrics)
Параметры |
---|
testId | TestDescription |
endTime | long |
metrics | |
testEnded
public void testEnded (TestDescription testId,
metrics)
Параметры |
---|
testId | TestDescription |
metrics | |
testFailed
public void testFailed (TestDescription testId,
FailureDescription failure)
Параметры |
---|
testId | TestDescription |
failure | FailureDescription |
testFailed
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
public void testModuleStarted (IInvocationContext moduleContext)
Параметры |
---|
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)
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)
testStarted
public void testStarted (TestDescription testId,
long startTime)
Параметры |
---|
testId | TestDescription |
startTime | long |
testStarted
public void testStarted (TestDescription testId)
Параметры |
---|
testId | TestDescription |