ResultAggregator
public class ResultAggregator
extends CollectingTestListener
משלח מיוחד שמאגד את התוצאות בעת הצורך, בהתבסס על אסטרטגיית הניסוי החוזר שננקטה.
סיכום
שיטות ציבוריות |
---|
void | cleanEventsFiles () |
final void | forwardAggregatedInvocationLogs () העבר את כל יומני רמת הפנייה לכתבי התוצאות שאינם תומכים בתוצאות המפורטות. |
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) קובע את הדיווח החדש. |
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) |
בוני ציבור
ResultAggregator
public ResultAggregator ( listeners,
RetryStrategy strategy)
פרמטרים |
---|
listeners | |
strategy | RetryStrategy |
שיטות ציבוריות
cleanEventsFiles
public void cleanEventsFiles ()
forwardAggregatedInvocationLogs
public final void forwardAggregatedInvocationLogs ()
העבר את כל יומני רמת הקריאה לכתבי התוצאות שאינם תומכים בתוצאות המפורטות.
invocationEnded
public void invocationEnded (long elapsedTime)
invocation נכשל
public void invocationFailed (FailureDescription failure)
פרמטרים |
---|
failure | FailureDescription |
invocation נכשל
public void invocationFailed (Throwable cause)
invocationStarted
public void invocationStarted (IInvocationContext context)
פרמטרים |
---|
context | IInvocationContext |
התאחדות log
public void logAssociation (String dataName,
LogFile logFile)
פרמטרים |
---|
dataName | String |
logFile | LogFile |
setLogSaver
public void setLogSaver (ILogSaver logSaver)
פרמטרים |
---|
logSaver | ILogSaver |
setUpdatedReporting
public void setUpdatedReporting (boolean updatedReporting)
קובע את הדיווח החדש.
פרמטרים |
---|
updatedReporting | boolean |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
String trace)
פרמטרים |
---|
test | TestDescription |
trace | String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
פרמטרים |
---|
test | TestDescription |
failure | FailureDescription |
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
פרמטרים |
---|
test | TestDescription |
endTime | long |
testMetrics | |
מבחן נכשל
public void testFailed (TestDescription test,
FailureDescription failure)
פרמטרים |
---|
test | TestDescription |
failure | FailureDescription |
מבחן נכשל
public void testFailed (TestDescription test,
String trace)
פרמטרים |
---|
test | TestDescription |
trace | String |
מבחן התעלם
public void testIgnored (TestDescription test)
פרמטרים |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
פרמטרים |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
פרמטרים |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
פרמטרים |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
פרמטרים |
---|
elapsedTime | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
פרמטרים |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
פרמטרים |
---|
errorMessage | String |
testRunStarted
public void testRunStarted (String name,
int testCount,
int attemptNumber,
long startTime)
פרמטרים |
---|
name | String |
testCount | int |
attemptNumber | int |
startTime | long |
testStarted
public void testStarted (TestDescription test,
long startTime)
פרמטרים |
---|
test | TestDescription |
startTime | long |
שיטות מוגנות
getEventsLogs
protected File[] getEventsLogs ()