ExecutarCommandTargetPreparer

public class RunCommandTargetPreparer
extends BaseTargetPreparer

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


Resumo

Construtores públicos

RunCommandTargetPreparer ()

Métodos públicos

final void addRunCommand (String cmd)

Adicione um comando que será executado pelo preparador.

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

void tearDown ( TestInformation testInfo, Throwable e)

Métodos protegidos

ITestDevice getDevice ( TestInformation testInfo)

Retorna o dispositivo para aplicar o preparador.

Construtores públicos

ExecutarCommandTargetPreparer

public RunCommandTargetPreparer ()

Métodos públicos

addRunCommand

public final void addRunCommand (String cmd)

Adicione um comando que será executado pelo preparador.

Parâmetros
cmd String

obterComandos

public  getCommands ()

Devoluções

getExecutedCommands

public  getExecutedCommands ()

Devoluções

configurar

public void setUp (TestInformation testInfo)

Parâmetros
testInfo TestInformation

Lança
DeviceNotAvailableException
TargetSetupError

destruir

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parâmetros
testInfo TestInformation

e Throwable

Lança
DeviceNotAvailableException

Métodos protegidos

getDevice

protected ITestDevice getDevice (TestInformation testInfo)

Retorna o dispositivo para aplicar o preparador.

Devoluções
ITestDevice O dispositivo no qual aplicar o preparador.

Lança
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError