ClusterCommandLauncher

public class ClusterCommandLauncher
extends Object implements IConfigurationReceiver, IInvocationContextReceiver, IRemoteTest

java.lang.Object
   ↳ com.android.tradefed.cluster.ClusterCommandLauncher


Classe IRemoteTest permettant de lancer une commande depuis TFC via un sous-processus TF. FIXME : cela doit être étendu pour prendre en charge les tests multi-appareils.

Résumé

Constantes

String ANDROID_SERIALS

String TEST_WORK_DIR

String TF_DEVICE_COUNT

String TF_JAR_DIR

String TF_PATH

Constructeurs publics

ClusterCommandLauncher()

Méthodes publiques

void run(TestInformation testInfo, ITestInvocationListener listener)

Exécute les tests et communique les résultats au listener.

void setConfiguration(IConfiguration configuration)

Injecte le IConfiguration en cours d'utilisation.

void setInvocationContext(IInvocationContext invocationContext)

Constantes

ANDROID_SERIALS

public static final String ANDROID_SERIALS

Valeur de constante : "ANDROID_SERIALS"

TEST_WORK_DIR

public static final String TEST_WORK_DIR

Valeur de constante : "TEST_WORK_DIR"

TF_DEVICE_COUNT

public static final String TF_DEVICE_COUNT

Valeur de constante : "TF_DEVICE_COUNT"

TF_JAR_DIR

public static final String TF_JAR_DIR

Valeur de constante : "TF_JAR_DIR"

TF_PATH

public static final String TF_PATH

Valeur de constante : "TF_PATH"

Constructeurs publics

ClusterCommandLauncher

public ClusterCommandLauncher ()

Méthodes publiques

Exécuter

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Exécute les tests et communique les résultats au listener.

Paramètres
testInfo TestInformation : objet TestInformation contenant des informations utiles pour exécuter des tests.

listener ITestInvocationListener : ITestInvocationListener des résultats du test

Génère
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Injecte le IConfiguration en cours d'utilisation.

Paramètres
configuration IConfiguration

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Paramètres
invocationContext IInvocationContext