Sonuç Toplayıcı
public class ResultAggregator
extends CollectingTestListener
Alınan yeniden deneme stratejisine göre gerektiğinde sonuçları toplayan özel iletici.
Özet
Genel yöntemler |
---|
void | cleanEventsFiles () |
final void | forwardAggregatedInvocationLogs () Tüm çağrı düzeyi günlüklerini ayrıntılı sonuçları desteklemeyen sonuç raporlayıcılarına iletin. |
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) Yeni raporlamayı ayarlar. |
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) |
Kamu inşaatçıları
Sonuç Toplayıcı
public ResultAggregator ( listeners,
RetryStrategy strategy)
Parametreler |
---|
listeners | |
strategy | RetryStrategy |
Genel yöntemler
cleanEventsFiles
public void cleanEventsFiles ()
forwardAggregatedInvokasyonGünlükleri
public final void forwardAggregatedInvocationLogs ()
Tüm çağrı düzeyi günlüklerini ayrıntılı sonuçları desteklemeyen sonuç raporlayıcılarına iletin.
çağırma sona erdi
public void invocationEnded (long elapsedTime)
Parametreler |
---|
elapsedTime | long |
çağrı başarısız oldu
public void invocationFailed (FailureDescription failure)
Parametreler |
---|
failure | FailureDescription |
çağrı başarısız oldu
public void invocationFailed (Throwable cause)
Parametreler |
---|
cause | Throwable |
çağrı başlatıldı
public void invocationStarted (IInvocationContext context)
Parametreler |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
Parametreler |
---|
dataName | String |
logFile | LogFile |
setLogSaver
public void setLogSaver (ILogSaver logSaver)
Parametreler |
---|
logSaver | ILogSaver |
setGüncellenmişRaporlama
public void setUpdatedReporting (boolean updatedReporting)
Yeni raporlamayı ayarlar.
Parametreler |
---|
updatedReporting | boolean |
testVarsayımBaşarısızlık
public void testAssumptionFailure (TestDescription test,
String trace)
Parametreler |
---|
test | TestDescription |
trace | String |
testVarsayımBaşarısızlık
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Parametreler |
---|
test | TestDescription |
failure | FailureDescription |
testSonlandı
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametreler |
---|
test | TestDescription |
endTime | long |
testMetrics | |
test başarısız
public void testFailed (TestDescription test,
FailureDescription failure)
Parametreler |
---|
test | TestDescription |
failure | FailureDescription |
test başarısız
public void testFailed (TestDescription test,
String trace)
Parametreler |
---|
test | TestDescription |
trace | String |
testYoksayıldı
public void testIgnored (TestDescription test)
Parametreler |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parametreler |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Parametreler |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Parametreler |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parametreler |
---|
elapsedTime | long |
runMetrics | |
testRun Başarısız
public void testRunFailed (FailureDescription failure)
Parametreler |
---|
failure | FailureDescription |
testRun Başarısız
public void testRunFailed (String errorMessage)
Parametreler |
---|
errorMessage | String |
testRunBaşlatıldı
public void testRunStarted (String name,
int testCount,
int attemptNumber,
long startTime)
Parametreler |
---|
name | String |
testCount | int |
attemptNumber | int |
startTime | long |
testBaşladı
public void testStarted (TestDescription test,
long startTime)
Parametreler |
---|
test | TestDescription |
startTime | long |
Korumalı yöntemler
getEventsLogs
protected File[] getEventsLogs ()