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 |
آزمون فرض شکست
public void testAssumptionFailure (TestDescription test,
String trace)
مولفه های |
---|
test | TestDescription |
trace | String |
آزمون فرض شکست
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 ()