ResultForwarder
public class ResultForwarder
extends Object
implements ITestInvocationListener
java.lang.Object |
↳ | com.android.tradefed.result.ResultForwarder |
الفئات الفرعية المباشرة المعروفة |
الفئات الفرعية غير المباشرة المعروفة |
ITestInvocationListener
الذي يعيد توجيه نتائج الاستدعاء إلى قائمة المستمعين الآخرين.
ملخص
الأساليب العامة |
---|
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
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 | 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 runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long elapsedTime) |
void | testStarted (TestDescription test, long startTime) |
void | testStarted (TestDescription test) |
المقاولين العامة
ResultForwarder
public ResultForwarder ( listeners)
إنشاء ResultForwarder
.
ResultForwarder
public ResultForwarder (ITestInvocationListener... listeners)
مُنشئ وسيطة متغيرة بديلة لـ ResultForwarder
.
بناة المحمية
ResultForwarder
protected ResultForwarder ()
قم بإنشاء ResultForwarder
مع إعداد المستمع المؤجل. مخصص فقط للاستخدام من قبل الفئات الفرعية.
الأساليب العامة
getSummary
public TestSummary getSummary ()
انتهت الدعوة
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 |
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 |
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 runName,
int testCount,
int attemptNumber)
حدود |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
حدود |
---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
حدود |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunStopped
public void testRunStopped (long elapsedTime)
testStarted
public void testStarted (TestDescription test,
long startTime)
حدود |
---|
test | TestDescription |
startTime | long |
testStarted
public void testStarted (TestDescription test)
حدود |
---|
test | TestDescription |
الأساليب المحمية
getListeners
protected getListeners ()
الحصول على قائمة المستمعين. مخصص فقط للاستخدام من قبل الفئات الفرعية.
setListeners
protected void setListeners ( listeners)
ضبط المستمعين بعد البناء. مخصص فقط للاستخدام من قبل الفئات الفرعية.
setListeners
protected void setListeners (ITestInvocationListener... listeners)
ضبط المستمعين بعد البناء. مخصص فقط للاستخدام من قبل الفئات الفرعية.