RunHostCommandTargetPreparer

public class RunHostCommandTargetPreparer
extends BaseTargetPreparer implements ITestLoggerReceiver

java.lang.Object 中
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.RunHostCommandTargetPreparer


目标准备器,用于在运行测试前后运行任意主机命令。

摘要

公共构造函数

RunHostCommandTargetPreparer()

公共方法

void setTestLogger(ITestLogger testLogger)

注入 ITestLogger 实例

final void setUp(TestInformation testInfo)

void tearDown(TestInformation testInfo, Throwable e)

公共构造函数

RunHostCommandTargetPreparer

public RunHostCommandTargetPreparer ()

公共方法

setTestLogger

public void setTestLogger (ITestLogger testLogger)

注入 ITestLogger 实例

参数
testLogger ITestLogger

设置

public final void setUp (TestInformation testInfo)

参数
testInfo TestInformation

抛出
BuildError
DeviceNotAvailableException
TargetSetupError

拆解

public void tearDown (TestInformation testInfo, 
                Throwable e)

参数
testInfo TestInformation

e Throwable

抛出
DeviceNotAvailableException