Agregator Hasil
public class ResultAggregator
extends CollectingTestListener
Forwarder khusus yang mengumpulkan hasil bila diperlukan, berdasarkan strategi percobaan ulang yang diambil.
Ringkasan
Metode publik |
---|
void | cleanEventsFiles () |
final void | forwardAggregatedInvocationLogs () Meneruskan semua log tingkat pemanggilan ke pelapor hasil yang tidak mendukung hasil terperinci. |
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) Menetapkan pelaporan baru. |
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) |
Konstruktor publik
Agregator Hasil
public ResultAggregator ( listeners,
RetryStrategy strategy)
Parameter |
---|
listeners | |
strategy | RetryStrategy |
Metode publik
membersihkanEventsFiles
public void cleanEventsFiles ()
forwardAgregatedInvocationLogs
public final void forwardAggregatedInvocationLogs ()
Meneruskan semua log tingkat pemanggilan ke pelapor hasil yang tidak mendukung hasil terperinci.
doaBerakhir
public void invocationEnded (long elapsedTime)
Parameter |
---|
elapsedTime | long |
doaGagal
public void invocationFailed (FailureDescription failure)
Parameter |
---|
failure | FailureDescription |
doaGagal
public void invocationFailed (Throwable cause)
Parameter |
---|
cause | Throwable |
doaDimulai
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)
Menetapkan pelaporan baru.
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 |
tesBerakhir
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parameter |
---|
test | TestDescription |
endTime | long |
testMetrics | |
tesGagal
public void testFailed (TestDescription test,
FailureDescription failure)
Parameter |
---|
test | TestDescription |
failure | FailureDescription |
tesGagal
public void testFailed (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
tesIgnored
public void testIgnored (TestDescription test)
Parameter |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parameter |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Parameter |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
testModuleBerakhir
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 |
tesRunStarted
public void testRunStarted (String name,
int testCount,
int attemptNumber,
long startTime)
Parameter |
---|
name | String |
testCount | int |
attemptNumber | int |
startTime | long |
tesDimulai
public void testStarted (TestDescription test,
long startTime)
Parameter |
---|
test | TestDescription |
startTime | long |
Metode yang dilindungi
dapatkanEventsLogs
protected File[] getEventsLogs ()