ModuleListener
public
class
ModuleListener
extends CollectingTestListener
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.testtype.suite.ModuleListener |
مستمع مرفق بكل 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,
|
void
|
testEnded(TestDescription test,
|
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,
|
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 ()
تعرِض هذه السمة ما إذا تعذّر إكمال جلسة إعادة المحاولة الأخيرة للمستمع أم لا.
المرتجعات | |
---|---|
boolean |
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)
ما إذا كان سيتم وضع علامة على جميع حالات الاختبار التي تم تخطّيها أم لا
المعلمات | |
---|---|
skip |
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 |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
المعلمات | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testEnded
public void testEnded (TestDescription test,testMetrics)
المعلمات | |
---|---|
test |
TestDescription |
testMetrics |
|
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
المعلمات | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test, String trace)
المعلمات | |
---|---|
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
المعلمات | |
---|---|
test |
TestDescription |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
المعلمات | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
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 |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
المعلمات | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
المعلمات | |
---|---|
errorMessage |
String |
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 |