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)

使用二進制名稱運行名稱的 Ctor。

公共方法

void testRunStarted (String runName, int testCount)

報告測試運行的開始。

void testRunStarted (String runName, int testCount, int attempt, long startTime)

報告測試運行的開始。

void testRunStarted (String runName, int testCount, int attempt)

報告測試運行的開始。

公共構造函數

Python轉發器

public PythonForwarder (ITestInvocationListener listener, 
                String name)

使用二進制名稱運行名稱的 Ctor。

參數
listener ITestInvocationListener

name String

公共方法

測試運行開始

public void testRunStarted (String runName, 
                int testCount)

報告測試運行的開始。

參數
runName String : 測試運行名稱

testCount int : 測試運行中的測試總數

測試運行開始

public void testRunStarted (String runName, 
                int testCount, 
                int attempt, 
                long startTime)

報告測試運行的開始。

參數
runName String : 測試運行名稱

testCount int : 測試運行中的測試總數

attempt int : order number,標識同一 runName 多次運行的不同嘗試。 attemptNumber 是從 0 開始索引的,每次發生新的運行時都應該遞增。例如,一個測試被精細地重試了 3 次,它應該在同一個 runName 下總共運行 4 次,並且 attemptNumber 是從 0 到 3。

startTime long :運行開始的時間,通過ERROR(/System#currentTimeMillis())測量

測試運行開始

public void testRunStarted (String runName, 
                int testCount, 
                int attempt)

報告測試運行的開始。

參數
runName String : 測試運行名稱

testCount int : 測試運行中的測試總數

attempt int : order number,標識同一 runName 多次運行的不同嘗試。 attemptNumber 是從 0 開始索引的,每次發生新的運行時都應該遞增。例如,一個測試被精細地重試了 3 次,它應該在同一個 runName 下總共運行 4 次,並且 attemptNumber 是從 0 到 3。