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) |
روش های محافظت شده |
---|
| getListeners () لیست شنوندگان را دریافت کنید. |
void | setListeners ( listeners) setListeners ( listeners) شنوندگان را پس از ساخت تنظیم کنید. |
void | setListeners (ITestInvocationListener... listeners) شنوندگان را پس از ساخت تنظیم کنید. |
سازندگان عمومی
ResultForwarder
public ResultForwarder ( listeners)
یک ResultForwarder
ایجاد کنید.
ResultForwarder
public ResultForwarder (ITestInvocationListener... listeners)
سازنده متغیر arg برای ResultForwarder
.
سازندگان محافظت شده
ResultForwarder
protected ResultForwarder ()
یک ResultForwarder
با تنظیمات شنونده معوق ایجاد کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است.
روش های عمومی
دریافت خلاصه
public TestSummary getSummary ()
فراخوان پایان یافت
public void invocationEnded (long elapsedTime)
مولفه های |
---|
elapsedTime | long |
فراخوان ناموفق بود
public void invocationFailed (FailureDescription failure)
مولفه های |
---|
failure | FailureDescription |
فراخوان ناموفق بود
public void invocationFailed (Throwable cause)
مولفه های |
---|
cause | Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
مولفه های |
---|
context | IInvocationContext |
آزمون فرض شکست
public void testAssumptionFailure (TestDescription test,
String trace)
مولفه های |
---|
test | TestDescription |
trace | String |
آزمون فرض شکست
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 |
تست نادیده گرفته شد
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 | |
testRunFailed
public void testRunFailed (FailureDescription failure)
مولفه های |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
مولفه های |
---|
errorMessage | String |
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)
مولفه های |
---|
elapsedTime | long |
تست شروع شد
public void testStarted (TestDescription test,
long startTime)
مولفه های |
---|
test | TestDescription |
startTime | long |
تست شروع شد
public void testStarted (TestDescription test)
مولفه های |
---|
test | TestDescription |
روش های محافظت شده
دریافت شنوندگان
protected getListeners ()
لیست شنوندگان را دریافت کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است.
setListeners
protected void setListeners ( listeners)
شنوندگان را پس از ساخت تنظیم کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است.
setListeners
protected void setListeners (ITestInvocationListener... listeners)
شنوندگان را پس از ساخت تنظیم کنید. فقط برای استفاده توسط زیر کلاس ها در نظر گرفته شده است.