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)
مولفه های |
---|
elapsedTime | long |
فراخوانی ناموفق
public void invocationFailed (FailureDescription failure)
مولفه های |
---|
failure | FailureDescription |
فراخوانی ناموفق
public void invocationFailed (Throwable cause)
مولفه های |
---|
cause | Throwable |
invocationStarted
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 |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test,
String trace)
مولفه های |
---|
test | TestDescription |
trace | String |
testAssumptionFailure
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 |
testStarted
public void testStarted (TestDescription test,
long startTime)
مولفه های |
---|
test | TestDescription |
startTime | long |
روشهای حفاظت شده
getEventsLogs
protected File[] getEventsLogs ()