ShardListener
public class ShardListener
extends CollectingTestListener
implements ISupportGranularResults
ITestInvocationListener
الذي يجمع النتائج من جزء الاستدعاء (المعروف أيضًا باسم تقسيم الاستدعاء للتشغيل على موارد متعددة بالتوازي)، ويعيد توجيهها إلى مستمع آخر.
ملخص
الأساليب العامة |
---|
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | setSupportGranularResults (boolean enableGranularResults) |
boolean | supportGranularResults () |
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 failureMessage) |
void | testRunStarted (String name, int numTests, int attemptNumber, long startTime) |
المقاولين العامة
ShardListener
public ShardListener (ITestInvocationListener main)
إنشاء ShardListener
.
حدود |
---|
main | ITestInvocationListener : يجب إعادة توجيه النتائج إلى ITestInvocationListener . لمنع الاصطدامات مع ShardListener الأخرى، ستتم مزامنة هذا الكائن على main عند إعادة توجيه النتائج. ولن يتم إرسال النتائج إلا بعد اكتمال جزء الاستدعاء. |
الأساليب العامة
انتهت الدعوة
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 |
setSupportGranularResults
public void setSupportGranularResults (boolean enableGranularResults)
حدود |
---|
enableGranularResults | boolean |
supportGranularResults
public boolean supportGranularResults ()
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 failureMessage)
حدود |
---|
failureMessage | String |
testRunStarted
public void testRunStarted (String name,
int numTests,
int attemptNumber,
long startTime)
حدود |
---|
name | String |
numTests | int |
attemptNumber | int |
startTime | long |