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 wykonane przez osobę przygotowującą. |
|
getCommands()
|
|
getExecutedCommands()
|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Chronione metody | |
---|---|
ITestDevice
|
getDevice(TestInformation testInfo)
Zwraca urządzenie, na którym ma zostać zastosowany przygotowywacz. |
Konstruktory publiczne
Przygotowanie polecenia RunCommandTarget
public RunCommandTargetPreparer ()
Metody publiczne
addRunCommand
public final void addRunCommand (String cmd)
Dodaj polecenie, które będzie uruchamiane przez narzędzie przygotowujące.
Parametry | |
---|---|
cmd |
String |
getCommands
publicgetCommands ()
Zwroty | |
---|---|
|
getExecutedCommands
publicgetExecutedCommands ()
Zwroty | |
---|---|
|
setUp
public void setUp (TestInformation testInfo)
Parametry | |
---|---|
testInfo |
TestInformation |
Rzuty | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
Parametry | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
Rzuty | |
---|---|
DeviceNotAvailableException |
Chronione metody
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
Zwraca urządzenie, na którym ma zostać zastosowany przygotowywacz.
Zwroty | |
---|---|
ITestDevice |
Urządzenie, na którym ma zostać zastosowany przygotowacz. |
Rzuty | |
---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |