Agregador de resultados
public class ResultAggregator
extends CollectingTestListener
Reenviador especial que agrega los resultados cuando es necesario, según la estrategia de reintento que se tomó.
Resumen
Métodos públicos |
---|
void | cleanEventsFiles () |
final void | forwardAggregatedInvocationLogs () Reenvíe todos los registros del nivel de invocación a los reporteros de resultados que no admiten los resultados granulares. |
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) Establece los nuevos informes. |
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) |
Constructores públicos
Agregador de resultados
public ResultAggregator ( listeners,
RetryStrategy strategy)
Parámetros |
---|
listeners | |
strategy | RetryStrategy |
Métodos públicos
limpiarEventosArchivos
public void cleanEventsFiles ()
forwardAggregatedInvocationLogs
public final void forwardAggregatedInvocationLogs ()
Reenvíe todos los registros del nivel de invocación a los reporteros de resultados que no admiten los resultados granulares.
invocaciónFinalizada
public void invocationEnded (long elapsedTime)
Parámetros |
---|
elapsedTime | long |
invocación fallida
public void invocationFailed (FailureDescription failure)
Parámetros |
---|
failure | FailureDescription |
invocación fallida
public void invocationFailed (Throwable cause)
Parámetros |
---|
cause | Throwable |
invocaciónIniciada
public void invocationStarted (IInvocationContext context)
Parámetros |
---|
context | IInvocationContext |
asociación de registros
public void logAssociation (String dataName,
LogFile logFile)
Parámetros |
---|
dataName | String |
logFile | LogFile |
establecerLogSaver
public void setLogSaver (ILogSaver logSaver)
Parámetros |
---|
logSaver | ILogSaver |
establecer informes actualizados
public void setUpdatedReporting (boolean updatedReporting)
Establece los nuevos informes.
Parámetros |
---|
updatedReporting | boolean |
pruebaSuposiciónFracaso
public void testAssumptionFailure (TestDescription test,
String trace)
Parámetros |
---|
test | TestDescription |
trace | String |
pruebaSuposiciónFracaso
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Parámetros |
---|
test | TestDescription |
failure | FailureDescription |
pruebafinalizada
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parámetros |
---|
test | TestDescription |
endTime | long |
testMetrics | |
prueba fallida
public void testFailed (TestDescription test,
FailureDescription failure)
Parámetros |
---|
test | TestDescription |
failure | FailureDescription |
prueba fallida
public void testFailed (TestDescription test,
String trace)
Parámetros |
---|
test | TestDescription |
trace | String |
pruebaIgnorado
public void testIgnored (TestDescription test)
Parámetros |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parámetros |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Parámetros |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
testModuleEnded
public void testModuleEnded ()
módulo de prueba iniciado
public void testModuleStarted (IInvocationContext moduleContext)
Parámetros |
---|
moduleContext | IInvocationContext |
pruebaRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parámetros |
---|
elapsedTime | long |
runMetrics | |
prueba de ejecución fallida
public void testRunFailed (FailureDescription failure)
Parámetros |
---|
failure | FailureDescription |
prueba de ejecución fallida
public void testRunFailed (String errorMessage)
Parámetros |
---|
errorMessage | String |
pruebaRunStarted
public void testRunStarted (String name,
int testCount,
int attemptNumber,
long startTime)
Parámetros |
---|
name | String |
testCount | int |
attemptNumber | int |
startTime | long |
pruebaIniciada
public void testStarted (TestDescription test,
long startTime)
Parámetros |
---|
test | TestDescription |
startTime | long |
Métodos protegidos
obtener registros de eventos
protected File[] getEventsLogs ()