RetryLogSaverResultForwarder
public
class
RetryLogSaverResultForwarder
extends LogSaverResultForwarder
| java.lang.Object | |||
| ↳ | com.android.tradefed.result.ResultForwarder | ||
| ↳ | com.android.tradefed.result.LogSaverResultForwarder | ||
| ↳ | com.android.tradefed.retry.RetryLogSaverResultForwarder | ||
轉送器,同時會處理傳遞目前嘗試的內容。
摘要
公用建構函式 | |
|---|---|
RetryLogSaverResultForwarder(ILogSaver logSaver,
|
|
公用方法 | |
|---|---|
void
|
incrementAttempt()
增加嘗試次數。 |
void
|
testRunStarted(String runName, int testCount)
回報測試執行作業的開始時間。 |
void
|
testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
回報測試執行作業的開始時間。 |
void
|
testRunStarted(String runName, int testCount, int attemptNumber)
回報測試執行作業的開始時間。 |
公用建構函式
RetryLogSaverResultForwarder
public RetryLogSaverResultForwarder (ILogSaver logSaver,listeners, IConfiguration config)
| 參數 | |
|---|---|
logSaver |
ILogSaver |
listeners |
|
config |
IConfiguration |
公用方法
incrementAttempt
public void incrementAttempt ()
嘗試次數增加。
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:訂單號碼,用於識別同一個 runName 執行多次的不同嘗試。attemptNumber 的索引為 0,每次執行新測試時,應增加 1。舉例來說,如果測試重試 3 次,則在相同的 runName 下,應有 4 次總執行次數,而 attemptNumber 則從 0 到 3。 |
startTime |
long:透過 System.currentTimeMillis() 測量的執行作業開始時間 |
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。 |