PythonBinaryHostTest.PythonForwarder
public
static
class
PythonBinaryHostTest.PythonForwarder
extends ResultForwarder
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.ResultForwarder | |
| ↳ | com.android.tradefed.testtype.python.PythonBinaryHostTest.PythonForwarder | |
結果轉寄器,用以將執行名稱替換為二進位名稱。
摘要
公用建構函式 | |
|---|---|
PythonForwarder(ITestInvocationListener listener, String name)
使用二進位名稱的執行名稱的建構函式。 |
|
公用方法 | |
|---|---|
void
|
testRunStarted(String runName, int testCount)
回報測試執行作業的開始時間。 |
void
|
testRunStarted(String runName, int testCount, int attempt, long startTime)
回報測試執行作業的開始時間。 |
void
|
testRunStarted(String runName, int testCount, int attempt)
回報測試執行作業的開始時間。 |
公用建構函式
PythonForwarder
public PythonForwarder (ITestInvocationListener listener, String name)
使用二進位名稱的執行名稱建構函式。
| 參數 | |
|---|---|
listener |
ITestInvocationListener |
name |
String |
公用方法
testRunStarted
public void testRunStarted (String runName,
int testCount)回報測試執行作業的開始時間。
| 參數 | |
|---|---|
runName |
String:測試執行作業名稱 |
testCount |
int:測試執行作業中的測試總數 |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attempt,
long startTime)回報測試執行作業的開始時間。
| 參數 | |
|---|---|
runName |
String:測試執行作業名稱 |
testCount |
int:測試執行作業中的測試總數 |
attempt |
int:訂單號碼,用於識別同一個 runName 執行多次的不同嘗試。attemptNumber 的索引為 0,每次執行新測試時,應增加 1。舉例來說,如果測試重試 3 次,則在相同的 runName 下,應有 4 次總執行次數,而 attemptNumber 則從 0 到 3。 |
startTime |
long:透過 System.currentTimeMillis() 測量的執行作業開始時間 |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attempt)回報測試執行作業的開始時間。
| 參數 | |
|---|---|
runName |
String:測試執行作業名稱 |
testCount |
int:測試執行作業中的測試總數 |
attempt |
int:訂單號碼,用於識別同一個 runName 執行多次的不同嘗試。attemptNumber 的索引為 0,每次執行時都應遞增。舉例來說,如果測試重試 3 次,則在相同的 runName 下,應有 4 次執行,而 attemptNumber 則從 0 到 3。 |