RunCommandTargetPreparer

public class RunCommandTargetPreparer
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.RunCommandTargetPreparer


摘要

公用建構函式

RunCommandTargetPreparer()

公用方法

final void addRunCommand(String cmd)

新增預先處理器執行的指令。

List<String> getCommands()
List<String> getExecutedCommands()
void setUp(TestInformation testInfo)

void tearDown(TestInformation testInfo, Throwable e)

受保護的方法

ITestDevice getDevice(TestInformation testInfo)

將裝置傳回,以套用準備人員。

公用建構函式

RunCommandTargetPreparer

public RunCommandTargetPreparer ()

公用方法

addRunCommand

public final void addRunCommand (String cmd)

新增準備工具執行的指令。

參數
cmd String

getCommands

public List<String> getCommands ()

傳回
List<String>

getExecutedCommands

public List<String> getExecutedCommands ()

傳回
List<String>

setUp

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

擲回
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

參數
testInfo TestInformation

e Throwable

擲回
DeviceNotAvailableException

受保護的方法

getDevice

protected ITestDevice getDevice (TestInformation testInfo)

將裝置退回給準備者。

傳回
ITestDevice 要套用準備工具的裝置。

擲回
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError