ResultAggregator
public
class
ResultAggregator
extends CollectingTestListener
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.retry.ResultAggregator |
Transmetteur spécial qui agrège les résultats si nécessaire, en fonction de la stratégie de nouvelle tentative adoptée.
Résumé
Constructeurs publics | |
---|---|
ResultAggregator(
|
Méthodes publiques | |
---|---|
void
|
cleanEventsFiles()
|
final
void
|
forwardAggregatedInvocationLogs()
Transmettez tous les journaux au niveau de l'appel aux outils de création de rapports sur les résultats qui ne prennent pas en charge les résultats détaillés. |
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)
Définit les nouveaux rapports. |
void
|
testAssumptionFailure(TestDescription test, String trace)
|
void
|
testAssumptionFailure(TestDescription test, FailureDescription failure)
|
void
|
testEnded(TestDescription test, long endTime,
|
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,
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String errorMessage)
|
void
|
testRunStarted(String name, int testCount, int attemptNumber, long startTime)
|
void
|
testStarted(TestDescription test, long startTime)
|
Méthodes protégées | |
---|---|
File[]
|
getEventsLogs()
|
Constructeurs publics
ResultAggregator
public ResultAggregator (listeners, RetryStrategy strategy)
Paramètres | |
---|---|
listeners |
|
strategy |
RetryStrategy |
Méthodes publiques
cleanEventsFiles
public void cleanEventsFiles ()
forwardAggregatedInvocationLogs
public final void forwardAggregatedInvocationLogs ()
Transmettez tous les journaux au niveau de l'appel aux outils de création de rapports sur les résultats qui ne prennent pas en charge les résultats détaillés.
invocationEnded
public void invocationEnded (long elapsedTime)
Paramètres | |
---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
Paramètres | |
---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
Paramètres | |
---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
Paramètres | |
---|---|
context |
IInvocationContext |
logAssociation
public void logAssociation (String dataName, LogFile logFile)
Paramètres | |
---|---|
dataName |
String |
logFile |
LogFile |
setLogSaver
public void setLogSaver (ILogSaver logSaver)
Paramètres | |
---|---|
logSaver |
ILogSaver |
setUpdatedReporting
public void setUpdatedReporting (boolean updatedReporting)
Définit les nouveaux rapports.
Paramètres | |
---|---|
updatedReporting |
boolean |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, String trace)
Paramètres | |
---|---|
test |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, FailureDescription failure)
Paramètres | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
Paramètres | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
Paramètres | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test, String trace)
Paramètres | |
---|---|
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
Paramètres | |
---|---|
test |
TestDescription |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Paramètres | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
Paramètres | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Paramètres | |
---|---|
moduleContext |
IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
Paramètres | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
Paramètres | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Paramètres | |
---|---|
errorMessage |
String |
testRunStarted
public void testRunStarted (String name, int testCount, int attemptNumber, long startTime)
Paramètres | |
---|---|
name |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
testStarted
public void testStarted (TestDescription test, long startTime)
Paramètres | |
---|---|
test |
TestDescription |
startTime |
long |
Méthodes protégées
getEventsLogs
protected File[] getEventsLogs ()
Renvoie | |
---|---|
File[] |