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。 |