ResultForwarder
public
class
ResultForwarder
extends Object
implements
ITestInvocationListener
java.lang.Object | |
↳ | com.android.tradefed.result.ResultForwarder |
將叫用結果轉送至其他事件監聽器清單的 ITestInvocationListener
。
摘要
公用建構函式 | |
---|---|
ResultForwarder(
建立 |
|
ResultForwarder(ITestInvocationListener... listeners)
|
受保護的建構函式 | |
---|---|
ResultForwarder()
使用延遲事件監聽器設定建立 |
公用方法 | |
---|---|
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,
|
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
|
testModuleEnded()
|
void
|
testModuleStarted(IInvocationContext moduleContext)
|
void
|
testRunEnded(long elapsedTime,
|
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(
在建構後設定監聽器。 |
void
|
setListeners(ITestInvocationListener... listeners)
在建構後設定監聽器。 |
公用建構函式
ResultForwarder
public ResultForwarder (listeners)
建立 ResultForwarder
。
參數 | |
---|---|
listeners |
:要轉送結果的實際 ITestInvocationListener |
ResultForwarder
public ResultForwarder (ITestInvocationListener... listeners)
ResultForwarder
的替代變數參數建構函式。
參數 | |
---|---|
listeners |
ITestInvocationListener :要轉送結果的實際 ITestInvocationListener |
受保護的建構函式
公用方法
getSummary
public TestSummary getSummary ()
傳回 | |
---|---|
TestSummary |
invocationEnded
public void invocationEnded (long elapsedTime)
參數 | |
---|---|
elapsedTime |
long |
invocationFailed
public void invocationFailed (FailureDescription failure)
參數 | |
---|---|
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
參數 | |
---|---|
cause |
Throwable |
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 |
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 |
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 |
testStarted
public void testStarted (TestDescription test, long startTime)
參數 | |
---|---|
test |
TestDescription |
startTime |
long |
testStarted
public void testStarted (TestDescription test)
參數 | |
---|---|
test |
TestDescription |
受保護的方法
setListeners
protected void setListeners (listeners)
在建構完成後設定監聽器。僅供子類別使用。
參數 | |
---|---|
listeners |
:要轉送結果的實際 ITestInvocationListener |
setListeners
protected void setListeners (ITestInvocationListener... listeners)
在建構完成後設定監聽器。僅供子類別使用。
參數 | |
---|---|
listeners |
ITestInvocationListener :要轉送結果的實際 ITestInvocationListener |