RunCommandTargetPreparer
public
class
RunCommandTargetPreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer | |
Resumo
Construtores públicos | |
|---|---|
RunCommandTargetPreparer()
|
|
Métodos públicos | |
|---|---|
final
void
|
addRunCommand(String cmd)
Adicione um comando que será executado pelo preparador. |
|
getCommands()
|
|
getExecutedCommands()
|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Métodos protegidos | |
|---|---|
ITestDevice
|
getDevice(TestInformation testInfo)
Retorna o dispositivo para aplicar o preparador. |
Construtores públicos
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
Métodos públicos
addRunCommand
public final void addRunCommand (String cmd)
Adicione um comando que será executado pelo preparador.
| Parâmetros | |
|---|---|
cmd |
String |
getCommands
publicgetCommands ()
| Retorna | |
|---|---|
|
|
getExecutedCommands
publicgetExecutedCommands ()
| Retorna | |
|---|---|
|
|
setUp
public void setUp (TestInformation testInfo)
| Parâmetros | |
|---|---|
testInfo |
TestInformation |
| Gera | |
|---|---|
DeviceNotAvailableException |
|
TargetSetupError |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| Parâmetros | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| Gera | |
|---|---|
DeviceNotAvailableException |
|
Métodos protegidos
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
Retorna o dispositivo para aplicar o preparador.
| Retorna | |
|---|---|
ITestDevice |
O dispositivo em que o preparador será aplicado. |
| Gera | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |
|