RisultatoAggregatore

public class ResultAggregator
extends CollectingTestListener

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


Spedizioniere speciale che aggrega i risultati quando necessario, in base alla strategia di ripetizione adottata.

Riepilogo

Costruttori pubblici

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

Metodi pubblici

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

Inoltra tutti i log a livello di chiamata ai reporter dei risultati che non supportano i risultati granulari.

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)

Imposta il nuovo rapporto.

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)

Metodi protetti

File[] getEventsLogs ()

Costruttori pubblici

RisultatoAggregatore

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

Parametri
listeners

strategy RetryStrategy

Metodi pubblici

cleanEventsFiles

public void cleanEventsFiles ()

forwardAggregatedInvocationLogs

public final void forwardAggregatedInvocationLogs ()

Inoltra tutti i log a livello di chiamata ai reporter dei risultati che non supportano i risultati granulari.

invocazione terminata

public void invocationEnded (long elapsedTime)

Parametri
elapsedTime long

invocazioneFallita

public void invocationFailed (FailureDescription failure)

Parametri
failure FailureDescription

invocazioneFallita

public void invocationFailed (Throwable cause)

Parametri
cause Throwable

invocazione avviata

public void invocationStarted (IInvocationContext context)

Parametri
context IInvocationContext

logAssociazione

public void logAssociation (String dataName, 
                LogFile logFile)

Parametri
dataName String

logFile LogFile

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Parametri
logSaver ILogSaver

setUpdatedReporting

public void setUpdatedReporting (boolean updatedReporting)

Imposta il nuovo rapporto.

Parametri
updatedReporting boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parametri
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parametri
test TestDescription

failure FailureDescription

test terminato

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

Parametri
test TestDescription

endTime long

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parametri
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Parametri
test TestDescription

trace String

testIgnorato

public void testIgnored (TestDescription test)

Parametri
test TestDescription

testLog

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

Parametri
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

Parametri
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parametri
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametri
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parametri
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parametri
errorMessage String

testRunStarted

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

Parametri
name String

testCount int

attemptNumber int

startTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Parametri
test TestDescription

startTime long

Metodi protetti

getEventsLogs

protected File[] getEventsLogs ()

ritorna
File[]