RunCommandTargetPreparer

public class RunCommandTargetPreparer
extends BaseTargetPreparer

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


Podsumowanie

Konstruktory publiczne

RunCommandTargetPreparer()

Metody publiczne

final void addRunCommand(String cmd)

Dodaj polecenie, które zostanie uruchomione przez osobę przygotowującą.

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

void tearDown(TestInformation testInfo, Throwable e)

Metody chronione

ITestDevice getDevice(TestInformation testInfo)

Zwraca urządzenie, na którym ma zostać zastosowany preparer.

Konstruktory publiczne

RunCommandTargetPreparer

public RunCommandTargetPreparer ()

Metody publiczne

addRunCommand

public final void addRunCommand (String cmd)

Dodaj polecenie, które zostanie uruchomione przez osobę przygotowującą.

Parametry
cmd String

getCommands

public List<String> getCommands ()

Zwraca
List<String>

getExecutedCommands

public List<String> getExecutedCommands ()

Zwraca
List<String>

setUp

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Zgłasza
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametry
testInfo TestInformation

e Throwable

Zgłasza
DeviceNotAvailableException

Metody chronione

getDevice

protected ITestDevice getDevice (TestInformation testInfo)

Zwraca urządzenie, na którym ma zostać zastosowany preparer.

Zwraca
ITestDevice Urządzenie, na którym ma zostać zastosowany preparat.

Zgłasza
com.android.tradefed.targetprep.TargetSetupError
TargetSetupError