TestRunToTestInvocationForwarder
public
class
TestRunToTestInvocationForwarder
extends Object
implements
ITestRunListener
java.lang.Object 中 | |
↳ | com.android.tradefed.result.ddmlib.TestRunToTestInvocationForwarder |
转发器从 ddmlib ITestRunListener
转发到 ITestLifeCycleReceiver
。
确保将结果从 ddmlib 接口转换为 Tradefed 接口。
Ddmlib 接口会关联到运行插桩测试。
摘要
字段 | |
---|---|
public
static
final
String |
ERROR_MESSAGE_FORMAT
|
公共构造函数 | |
---|---|
TestRunToTestInvocationForwarder(
|
公共方法 | |
---|---|
void
|
testAssumptionFailure(TestIdentifier testId, String trace)
|
void
|
testEnded(TestIdentifier testId,
|
void
|
testFailed(TestIdentifier testId, String trace)
|
void
|
testIgnored(TestIdentifier testId)
|
void
|
testRunEnded(long elapsedTime,
|
void
|
testRunFailed(String failure)
|
void
|
testRunStarted(String runName, int testCount)
|
void
|
testRunStopped(long elapsedTime)
|
void
|
testStarted(TestIdentifier testId)
|
字段
ERROR_MESSAGE_FORMAT
public static final String ERROR_MESSAGE_FORMAT
公共构造函数
TestRunToTestInvocationForwarder
public TestRunToTestInvocationForwarder (listeners)
参数 | |
---|---|
listeners |
|
公共方法
testAssumptionFailure
public void testAssumptionFailure (TestIdentifier testId, String trace)
参数 | |
---|---|
testId |
TestIdentifier |
trace |
String |
testEnded
public void testEnded (TestIdentifier testId,testMetrics)
参数 | |
---|---|
testId |
TestIdentifier |
testMetrics |
|
测试失败
public void testFailed (TestIdentifier testId, String trace)
参数 | |
---|---|
testId |
TestIdentifier |
trace |
String |
testIgnored
public void testIgnored (TestIdentifier testId)
参数 | |
---|---|
testId |
TestIdentifier |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
参数 | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (String failure)
参数 | |
---|---|
failure |
String |
testRunStarted
public void testRunStarted (String runName, int testCount)
参数 | |
---|---|
runName |
String |
testCount |
int |
testRunStopped
public void testRunStopped (long elapsedTime)
参数 | |
---|---|
elapsedTime |
long |
testStarted
public void testStarted (TestIdentifier testId)
参数 | |
---|---|
testId |
TestIdentifier |