ResultAggregator
public class ResultAggregator
extends CollectingTestListener
Forwarder khusus yang mengumpulkan hasil saat diperlukan, berdasarkan strategi coba lagi yang diambil.
Ringkasan
Metode publik |
---|
final void | forwardAggregatedInvocationLogs () Meneruskan semua log tingkat permintaan ke pelapor hasil yang tidak mendukung hasil yang 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 | 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
ResultAggregator
public ResultAggregator ( listeners,
RetryStrategy strategy)
Parameter |
---|
listeners | |
strategy | RetryStrategy |
Metode publik
forwardAggregatedInvocationLogs
public final void forwardAggregatedInvocationLogs ()
Meneruskan semua log tingkat permintaan ke reporter hasil yang tidak mendukung hasil yang terperinci.
invocationEnded
public void invocationEnded (long elapsedTime)
Parameter |
---|
elapsedTime | long |
seruanFailed
public void invocationFailed (FailureDescription failure)
Parameter |
---|
failure | FailureDescription |
seruanFailed
public void invocationFailed (Throwable cause)
Parameter |
---|
cause | Throwable |
invocationStarted
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 |
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 |
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parameter |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testFailed
public void testFailed (TestDescription test,
FailureDescription failure)
Parameter |
---|
test | TestDescription |
failure | FailureDescription |
testFailed
public void testFailed (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
testIabaikan
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 |
testModuleEnded
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 |
testRunStarted
public void testRunStarted (String name,
int testCount,
int attemptNumber,
long startTime)
Parameter |
---|
name | String |
testCount | int |
attemptNumber | int |
startTime | long |
testStarted
public void testStarted (TestDescription test,
long startTime)
Parameter |
---|
test | TestDescription |
startTime | long |