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。