ModuleListener
public class ModuleListener
extends CollectingTestListener
يتم إرفاق المستمع بكل IRemoteTest
لكل وحدة من أجل جمع قائمة النتائج.
ملخص
المقاولين العامة |
---|
ModuleListener (ITestInvocationListener listener) البناء. |
الأساليب العامة |
---|
boolean | hasLastAttemptFailed () إرجاع ما إذا كانت جلسة إعادة المحاولة الأخيرة للمستمع قد فشلت أم لا. |
void | logAssociation (String dataName, LogFile logFile) |
void | setAttemptIsolation (CurrentInvocation.IsolationGrade isolation) يضبط ما إذا كان يجب الإبلاغ عن المحاولة على أنها معزولة أم لا. |
void | setCollectTestsOnly (boolean collectTestsOnly) يحدد ما إذا كنا نقوم بجمع الاختبارات فقط أم لا. |
void | setMarkTestsSkipped (boolean skip) ما إذا كان سيتم تخطي كافة حالات الاختبار أم لا. |
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 | testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, 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 | testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String errorMessage) |
void | testRunStarted (String name, int numTests, int attemptNumber) |
void | testRunStarted (String name, int numTests, int attemptNumber, long startTime) |
void | testStarted (TestDescription test, long startTime) |
المقاولين العامة
ModuleListener
public ModuleListener (ITestInvocationListener listener)
البناء.
حدود |
---|
listener | ITestInvocationListener |
الأساليب العامة
hasLastAttemptFailed
public boolean hasLastAttemptFailed ()
إرجاع ما إذا كانت جلسة إعادة المحاولة الأخيرة للمستمع قد فشلت أم لا.
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
حدود |
---|
dataName | String |
logFile | LogFile |
setAttemptIsolation
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
يضبط ما إذا كان يجب الإبلاغ عن المحاولة على أنها معزولة أم لا.
حدود |
---|
isolation | CurrentInvocation.IsolationGrade |
setCollectTestsOnly
public void setCollectTestsOnly (boolean collectTestsOnly)
يحدد ما إذا كنا نقوم بجمع الاختبارات فقط أم لا.
حدود |
---|
collectTestsOnly | boolean |
setMarkTestsSkipped
public void setMarkTestsSkipped (boolean skip)
ما إذا كان سيتم تخطي كافة حالات الاختبار أم لا.
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 testEnded (TestDescription test,
testMetrics)
حدود |
---|
test | TestDescription |
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 |
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 numTests,
int attemptNumber)
حدود |
---|
name | String |
numTests | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String name,
int numTests,
int attemptNumber,
long startTime)
حدود |
---|
name | String |
numTests | int |
attemptNumber | int |
startTime | long |
testStarted
public void testStarted (TestDescription test,
long startTime)
حدود |
---|
test | TestDescription |
startTime | long |