RunCommandTargetPreparer

public class RunCommandTargetPreparer
extends BaseTargetPreparer

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


Riepilogo

Costruttori pubblici

RunCommandTargetPreparer()

Metodi pubblici

final void addRunCommand(String cmd)

Aggiungi un comando che verrà eseguito dal preparatore.

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

void tearDown(TestInformation testInfo, Throwable e)

Metodi protetti

ITestDevice getDevice(TestInformation testInfo)

Restituisce il dispositivo su cui applicare il preparatore.

Costruttori pubblici

RunCommandTargetPreparer

public RunCommandTargetPreparer ()

Metodi pubblici

addRunCommand

public final void addRunCommand (String cmd)

Aggiungi un comando che verrà eseguito dal preparatore.

Parametri
cmd String

getCommands

public List<String> getCommands ()

Restituisce
List<String>

getExecutedCommands

public List<String> getExecutedCommands ()

Restituisce
List<String>

setUp

public void setUp (TestInformation testInfo)

Parametri
testInfo TestInformation

Genera
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametri
testInfo TestInformation

e Throwable

Genera
DeviceNotAvailableException

Metodi protetti

getDevice

protected ITestDevice getDevice (TestInformation testInfo)

Restituisce il dispositivo su cui applicare il preparatore.

Restituisce
ITestDevice Il dispositivo su cui applicare il preparatore.

Genera
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError