ResultAggregator

public class ResultAggregator
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.retry.ResultAggregator


Специальный сервер пересылки, который при необходимости объединяет результаты на основе принятой стратегии повтора.

Резюме

Общественные конструкторы

ResultAggregator ( listeners, RetryStrategy strategy) ResultAggregator ( listeners, RetryStrategy strategy)

Публичные методы

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

Перенаправьте все журналы уровня вызовов репортерам результатов, которые не поддерживают детализированные результаты.

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void setLogSaver (ILogSaver logSaver)

void setUpdatedReporting (boolean updatedReporting)

Устанавливает новую отчетность.

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)
void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

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

void testStarted (TestDescription test, long startTime)

Защищенные методы

File[] getEventsLogs ()

Общественные конструкторы

ResultAggregator

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

Параметры
listeners

strategy RetryStrategy

Публичные методы

cleanEventsFiles

public void cleanEventsFiles ()

forwardAggregatedInvocationLogs

public final void forwardAggregatedInvocationLogs ()

Перенаправьте все журналы уровня вызовов репортерам результатов, которые не поддерживают детализированные результаты.

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

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Параметры
logSaver ILogSaver

setUpdatedReporting

public void setUpdatedReporting (boolean updatedReporting)

Устанавливает новую отчетность.

Параметры
updatedReporting boolean

testAssumingFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Параметры
test TestDescription

trace String

testAssumingFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Параметры
test TestDescription

failure FailureDescription

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Параметры
test TestDescription

endTime long

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Параметры
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Параметры
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Параметры
test TestDescription

testLog

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

Параметры
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

Параметры
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Параметры
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Параметры
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Параметры
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Параметры
errorMessage String

testRunStarted

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

Параметры
name String

testCount int

attemptNumber int

startTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Параметры
test TestDescription

startTime long

Защищенные методы

getEventsLogs

protected File[] getEventsLogs ()

Возврат
File[]