重試結果轉發器
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) 報告測試運行的開始。 |
公共構造函數
重試結果轉發器
public RetryResultForwarder (int attemptNumber, ITestInvocationListener... listeners)
參數 | |
---|---|
attemptNumber | int |
listeners | ITestInvocationListener |
公共方法
測試運行開始
public void testRunStarted (String runName, int testCount)
報告測試運行的開始。
參數 | |
---|---|
runName | String : 測試運行名稱 |
testCount | int : 測試運行中的測試總數 |
測試運行開始
public void testRunStarted (String runName, int testCount, int attemptNumber)
報告測試運行的開始。
參數 | |
---|---|
runName | String : 測試運行名稱 |
testCount | int : 測試運行中的測試總數 |
attemptNumber | int : order number,標識同一 runName 多次運行的不同嘗試。 attemptNumber 是從 0 開始索引的,每次發生新的運行時都應該遞增。例如,一個測試被精細地重試了 3 次,它應該在同一個 runName 下總共運行 4 次,並且 attemptNumber 是從 0 到 3。 |