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 :訂單編號,標識相同 runName 多次執行的不同嘗試。 attemptsNumber 是從 0 開始索引的,並且每次新的運行發生時都應該遞增。例如,一個測試被粒度重試 3 次,它應該在同一 runName 下總共運行 4 次,並且 attemptsNumber 從 0 到 3。

startTime long :運行開始的時間,透過System.currentTimeMillis()測量

測試運行開始

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

報告測試運行的開始。

參數
runName String : 測試運行名稱

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

attempt int :訂單編號,標識相同 runName 多次執行的不同嘗試。 attemptsNumber 是從 0 開始索引的,並且每次新的運行發生時都應該遞增。例如,一個測試被粒度重試 3 次,它應該在同一 runName 下總共運行 4 次,並且 attemptsNumber 從 0 到 3。