RunCommandTargetPreparer
public class RunCommandTargetPreparer
extends BaseTargetPreparer
Obiekt Java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer |
Streszczenie
Konstruktorzy publiczni | |
---|---|
RunCommandTargetPreparer () |
Metody publiczne | |
---|---|
final void | addRunCommand (String cmd) Dodaj polecenie, które będzie uruchamiane przez osobę przygotowującą. |
getCommands () | |
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 preparat przygotowujący. |
Konstruktorzy publiczni
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
Metody publiczne
dodaj polecenie Uruchom
public final void addRunCommand (String cmd)
Dodaj polecenie, które będzie uruchamiane przez osobę przygotowującą.
Parametry | |
---|---|
cmd | String |
pobierz Polecenia
publicgetCommands ()
Zwroty | |
---|---|
getExecutedCommands
publicgetExecutedCommands ()
Zwroty | |
---|---|
organizować coś
public void setUp (TestInformation testInfo)
Parametry | |
---|---|
testInfo | TestInformation |
Rzuca | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
zburzyć
public void tearDown (TestInformation testInfo, Throwable e)
Parametry | |
---|---|
testInfo | TestInformation |
e | Throwable |
Rzuca | |
---|---|
DeviceNotAvailableException |
Metody chronione
pobierz urządzenie
protected ITestDevice getDevice (TestInformation testInfo)
Zwraca urządzenie, na którym ma zostać zastosowany preparat przygotowujący.
Zwroty | |
---|---|
ITestDevice | Urządzenie, na którym należy nałożyć preparat. |
Rzuca | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |