RetryResultForwarder
public
class
RetryResultForwarder
extends ResultForwarder
java.lang.Object | ||
↳ | com.android.tradefed.result.ResultForwarder | |
↳ | com.android.tradefed.result.RetryResultForwarder |
ResultForwarder
的擴充功能,一律會推送至指定的嘗試次數。
摘要
公用建構函式 | |
---|---|
RetryResultForwarder(int attemptNumber, ITestInvocationListener... listeners)
|
公用方法 | |
---|---|
void
|
testRunStarted(String runName, int testCount)
回報測試執行作業的開始時間。 |
void
|
testRunStarted(String runName, int testCount, int attemptNumber)
回報測試執行作業的開始時間。 |
公用建構函式
RetryResultForwarder
public RetryResultForwarder (int attemptNumber, ITestInvocationListener... listeners)
參數 | |
---|---|
attemptNumber |
int |
listeners |
ITestInvocationListener |
公用方法
testRunStarted
public void testRunStarted (String runName, int testCount)
回報測試執行作業的開始時間。
參數 | |
---|---|
runName |
String :測試執行作業名稱 |
testCount |
int :測試執行作業中的測試總數 |
testRunStarted
public void testRunStarted (String runName, int testCount, int attemptNumber)
回報測試執行作業的開始時間。
參數 | |
---|---|
runName |
String :測試執行作業名稱 |
testCount |
int :測試執行作業中的測試總數 |
attemptNumber |
int :訂單號碼,用於識別同一個 runName 執行多次的不同嘗試。attemptNumber 的索引為 0,每次執行時都應遞增。舉例來說,如果測試重試 3 次,則在相同的 runName 下,應有 4 次執行,而 attemptNumber 則從 0 到 3。 |