مجمع النتائج
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) |
المقاولين العامة
مجمع النتائج
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)
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)
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 |
testIgnored
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 | |
فشل تشغيل الاختبار
public void testRunFailed (FailureDescription failure)
حدود |
---|
failure | FailureDescription |
فشل تشغيل الاختبار
public void testRunFailed (String errorMessage)
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 ()