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 ()
העבר את כל יומני רמת ההתקשרות לכתבי התוצאות שאינם תומכים בתוצאות המפורטות.
הקריאה הסתיימה
public void invocationEnded (long elapsedTime)
הפניה נכשלה
public void invocationFailed (FailureDescription failure)
פרמטרים |
---|
failure | FailureDescription |
הפניה נכשלה
public void invocationFailed (Throwable cause)
התראה התחילה
public void invocationStarted (IInvocationContext context)
פרמטרים |
---|
context | IInvocationContext |
logAssociation
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 |
testAssumption Failure
public void testAssumptionFailure (TestDescription test,
String trace)
פרמטרים |
---|
test | TestDescription |
trace | String |
testAssumption Failure
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
פרמטרים |
---|
test | TestDescription |
failure | FailureDescription |
הבדיקה הסתיים
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 |
הבדיקה התחילה
public void testStarted (TestDescription test,
long startTime)
פרמטרים |
---|
test | TestDescription |
startTime | long |
שיטות מוגנות
getEventsLogs
protected File[] getEventsLogs ()