RunCommandTargetPreparer
public class RunCommandTargetPreparer
extends BaseTargetPreparer
java.lang.Objeto | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer |
Resumen
Constructores públicos | |
---|---|
RunCommandTargetPreparer () |
Métodos públicos | |
---|---|
final void | addRunCommand (String cmd) Agregue un comando que ejecutará el preparador. |
getCommands () | |
getExecutedCommands () | |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
Métodos protegidos | |
---|---|
ITestDevice | getDevice ( TestInformation testInfo) Devuelve el dispositivo para aplicar el preparador. |
Constructores públicos
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
Métodos públicos
addRunCommand
public final void addRunCommand (String cmd)
Agregue un comando que ejecutará el preparador.
Parámetros | |
---|---|
cmd | String |
obtenerComandos
publicgetCommands ()
Devoluciones | |
---|---|
obtenerComandosEjecutados
publicgetExecutedCommands ()
Devoluciones | |
---|---|
configuración
public void setUp (TestInformation testInfo)
Parámetros | |
---|---|
testInfo | TestInformation |
Lanza | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
demoler
public void tearDown (TestInformation testInfo, Throwable e)
Parámetros | |
---|---|
testInfo | TestInformation |
e | Throwable |
Lanza | |
---|---|
DeviceNotAvailableException |
Métodos protegidos
obtenerDispositivo
protected ITestDevice getDevice (TestInformation testInfo)
Devuelve el dispositivo para aplicar el preparador.
Devoluciones | |
---|---|
ITestDevice | El dispositivo para aplicar el preparador. |
Lanza | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |