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

TearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

參數
testInfo TestInformation

e Throwable

擲回
DeviceNotAvailableException