Agregator wyników
public class ResultAggregator
extends CollectingTestListener
Specjalny spedytor, który w razie potrzeby agreguje wyniki na podstawie przyjętej strategii ponawiania prób.
Streszczenie
Metody publiczne |
---|
void | cleanEventsFiles () |
final void | forwardAggregatedInvocationLogs () Przekaż wszystkie dzienniki poziomu wywołania do osób zgłaszających wyniki, które nie obsługują szczegółowych wyników. |
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) Ustawia nowe raportowanie. |
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) |
Konstruktorzy publiczni
Agregator wyników
public ResultAggregator ( listeners,
RetryStrategy strategy)
Parametry |
---|
listeners | |
strategy | RetryStrategy |
Metody publiczne
czyste pliki zdarzeń
public void cleanEventsFiles ()
forwardAggregatedInvocationLogs
public final void forwardAggregatedInvocationLogs ()
Przekaż wszystkie dzienniki poziomu wywołania do osób zgłaszających wyniki, które nie obsługują szczegółowych wyników.
wywołanieZakończone
public void invocationEnded (long elapsedTime)
Parametry |
---|
elapsedTime | long |
wywołanie nie powiodło się
public void invocationFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
wywołanie nie powiodło się
public void invocationFailed (Throwable cause)
Parametry |
---|
cause | Throwable |
wywołanieRozpoczęte
public void invocationStarted (IInvocationContext context)
Parametry |
---|
context | IInvocationContext |
stowarzyszenie log
public void logAssociation (String dataName,
LogFile logFile)
Parametry |
---|
dataName | String |
logFile | LogFile |
ustawLogSaver
public void setLogSaver (ILogSaver logSaver)
Parametry |
---|
logSaver | ILogSaver |
setUpdatedRaportowanie
public void setUpdatedReporting (boolean updatedReporting)
Ustawia nowe raportowanie.
Parametry |
---|
updatedReporting | boolean |
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription test,
String trace)
Parametry |
---|
test | TestDescription |
trace | String |
testZałożenieNiepowodzenie
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Parametry |
---|
test | TestDescription |
failure | FailureDescription |
testZakończony
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametry |
---|
test | TestDescription |
endTime | long |
testMetrics | |
Test nieudany
public void testFailed (TestDescription test,
FailureDescription failure)
Parametry |
---|
test | TestDescription |
failure | FailureDescription |
Test nieudany
public void testFailed (TestDescription test,
String trace)
Parametry |
---|
test | TestDescription |
trace | String |
testIgnorowany
public void testIgnored (TestDescription test)
Parametry |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parametry |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Parametry |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
moduł testowyZakończony
public void testModuleEnded ()
Uruchomiono moduł testowy
public void testModuleStarted (IInvocationContext moduleContext)
Parametry |
---|
moduleContext | IInvocationContext |
testRunZakończony
public void testRunEnded (long elapsedTime,
runMetrics)
Parametry |
---|
elapsedTime | long |
runMetrics | |
testRun nie powiódł się
public void testRunFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
testRun nie powiódł się
public void testRunFailed (String errorMessage)
Parametry |
---|
errorMessage | String |
Uruchomiono testRun
public void testRunStarted (String name,
int testCount,
int attemptNumber,
long startTime)
Parametry |
---|
name | String |
testCount | int |
attemptNumber | int |
startTime | long |
test rozpoczęty
public void testStarted (TestDescription test,
long startTime)
Parametry |
---|
test | TestDescription |
startTime | long |
Metody chronione
pobierz dzienniki zdarzeń
protected File[] getEventsLogs ()