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