ErgebnisAggregator

public class ResultAggregator
extends CollectingTestListener

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


Spezieller Forwarder, der die Ergebnisse bei Bedarf basierend auf der gewählten Wiederholungsstrategie aggregiert.

Zusammenfassung

Öffentliche Bauträger

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

Öffentliche Methoden

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

Leiten Sie alle Protokolle auf Aufrufebene an die Ergebnisreporter weiter, die die detaillierten Ergebnisse nicht unterstützen.

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)

Legt das neue Reporting fest.

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)

Geschützte Methoden

File[] getEventsLogs ()

Öffentliche Bauträger

ErgebnisAggregator

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

Parameter
listeners

strategy RetryStrategy

Öffentliche Methoden

cleanEventsFiles

public void cleanEventsFiles ()

ForwardAggregatedInvocationLogs

public final void forwardAggregatedInvocationLogs ()

Leiten Sie alle Protokolle auf Aufrufebene an die Ergebnisreporter weiter, die die detaillierten Ergebnisse nicht unterstützen.

invocationEnded

public void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

Aufruf fehlgeschlagen

public void invocationFailed (FailureDescription failure)

Parameter
failure FailureDescription

Aufruf fehlgeschlagen

public void invocationFailed (Throwable cause)

Parameter
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Parameter
dataName String

logFile LogFile

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Parameter
logSaver ILogSaver

setUpdatedReporting

public void setUpdatedReporting (boolean updatedReporting)

Legt das neue Reporting fest.

Parameter
updatedReporting boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testEnded

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

Parameter
test TestDescription

endTime long

testMetrics

im Test durchgefallen

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

im Test durchgefallen

public void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Parameter
test TestDescription

testLog

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parameter
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parameter
errorMessage String

testRunStarted

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

Parameter
name String

testCount int

attemptNumber int

startTime long

testgestartet

public void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long

Geschützte Methoden

getEventsLogs

protected File[] getEventsLogs ()

Kehrt zurück
File[]