ClusterCommandLauncher
public
class
ClusterCommandLauncher
extends Object
implements
IConfigurationReceiver,
IInvocationContextReceiver,
IRemoteTest
| java.lang.Object | |
| ↳ | com.android.tradefed.cluster.ClusterCommandLauncher |
Uma classe IRemoteTest para iniciar um comando do TFC usando um subprocesso do TF. FIXME: isso precisa
ser estendido para oferecer suporte a testes em vários dispositivos.
Resumo
Constantes | |
|---|---|
String |
ANDROID_SERIALS
|
String |
TEST_WORK_DIR
|
String |
TF_DEVICE_COUNT
|
String |
TF_JAR_DIR
|
String |
TF_PATH
|
Construtores públicos | |
|---|---|
ClusterCommandLauncher()
|
|
Métodos públicos | |
|---|---|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Executa os testes e informa o resultado ao listener. |
void
|
setConfiguration(IConfiguration configuration)
Injeta o |
void
|
setInvocationContext(IInvocationContext invocationContext)
|
Constantes
ANDROID_SERIALS
public static final String ANDROID_SERIALS
Valor da constante: "ANDROID_SERIALS"
TEST_WORK_DIR
public static final String TEST_WORK_DIR
Valor da constante: "TEST_WORK_DIR"
TF_DEVICE_COUNT
public static final String TF_DEVICE_COUNT
Valor da constante: "TF_DEVICE_COUNT"
TF_JAR_DIR
public static final String TF_JAR_DIR
Valor da constante: "TF_JAR_DIR"
TF_PATH
public static final String TF_PATH
Valor da constante: "TF_PATH"
Construtores públicos
ClusterCommandLauncher
public ClusterCommandLauncher ()
Métodos públicos
run
public void run (TestInformation testInfo, ITestInvocationListener listener)
Executa os testes e informa o resultado ao listener.
| Parâmetros | |
|---|---|
testInfo |
TestInformation: o objeto TestInformation que contém informações úteis para executar
testes. |
listener |
ITestInvocationListener: o ITestInvocationListener dos resultados do teste |
| Gera | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injeta o IConfiguration em uso.
| Parâmetros | |
|---|---|
configuration |
IConfiguration |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
| Parâmetros | |
|---|---|
invocationContext |
IInvocationContext |