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)

添加將由準備者運行的命令。

getCommands ()
getExecutedCommands ()
void setUp ( TestInformation testInfo)

void tearDown ( TestInformation testInfo, Throwable e)

受保護的方法

ITestDevice getDevice ( TestInformation testInfo)

返回應用準備器的設備。

公共構造函數

RunCommandTargetPreparer

public RunCommandTargetPreparer ()

公共方法

添加運行命令

public final void addRunCommand (String cmd)

添加將由準備者運行的命令。

參數
cmd String

獲取命令

public  getCommands ()

退貨

getExecutedCommands

public  getExecutedCommands ()

退貨

設置

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

投擲
DeviceNotAvailableException
TargetSetupError

拆除

public void tearDown (TestInformation testInfo, 
                Throwable e)

參數
testInfo TestInformation

e Throwable

投擲
DeviceNotAvailableException

受保護的方法

獲取設備

protected ITestDevice getDevice (TestInformation testInfo)

返回應用準備器的設備。

退貨
ITestDevice應用準備器的設備。

投擲
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError