Exécution d'appel à distance

public class RemoteInvocationExecution
extends InvocationExecution

java.lang.Object
com.android.tradefed.invoker.InvocationExecution
com.android.tradefed.invoker.RemoteInvocationExecution


Implémentation d' InvocationExecution qui pilote une exécution à distance.

Résumé

Classes imbriquées

class RemoteInvocationExecution.FileOptionValueTransformer

Constantes

long JOIN_CLEAN_TIMEOUT_MS

long LAUNCH_EXTRA_DEVICE

long NEW_USER_TIMEOUT

long PULL_RESULT_TIMEOUT

long PUSH_TF_TIMEOUT

long REMOTE_PROCESS_RUNNING_WAIT

long SETUP_REMOTE_DIR_TIMEOUT

Des champs

public static final String GLOBAL_REMOTE_CONFIG

public static final String PROTO_RESULT_NAME

public static final String REMOTE_CONFIG

public static final String REMOTE_USER_DIR

public static final String START_FEATURE_SERVER

public static final String STDERR_FILE

public static final String STDOUT_FILE

Constructeurs publics

RemoteInvocationExecution ()

Méthodes publiques

void doCleanUp ( IInvocationContext context, IConfiguration config, Throwable exception)

Exécutez les étapes de nettoyage target_preparer et multi_target_preparer.

void doSetup ( TestInformation testInfo, IConfiguration config, ITestLogger logger)

Exécutez l’étape de configuration target_preparer et multi_target_preparer.

void doTeardown ( TestInformation testInfo, IConfiguration config, ITestLogger logger, Throwable exception)

Exécutez l’étape de démontage target_preparer et multi_target_preparer.

boolean fetchBuild ( TestInformation testInfo, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener listener)

Exécutez l’étape build_provider de l’appel.

void runTests ( TestInformation info, IConfiguration config, ITestInvocationListener listener)

Exécute le test.

Méthodes protégées

void customizeDevicePreInvocation ( IConfiguration config, IInvocationContext context)

Donnez la possibilité de personnaliser une partie de l'appareil avant preInvocationSetup.

String getAdbVersion ()

Renvoie la version adb utilisée pour l'appel.

Constantes

JOIN_CLEAN_TIMEOUT_MS

public static final long JOIN_CLEAN_TIMEOUT_MS

Valeur constante : 120 000 (0x000000000001d4c0)

LAUNCH_EXTRA_DEVICE

public static final long LAUNCH_EXTRA_DEVICE

Valeur constante : 900 000 (0x00000000000dbba0)

NEW_USER_TIMEOUT

public static final long NEW_USER_TIMEOUT

Valeur constante : 300 000 (0x00000000000493e0)

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

Valeur constante : 180 000 (0x000000000002bf20)

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

Valeur constante : 150 000 (0x00000000000249f0)

REMOTE_PROCESS_RUNNING_WAIT

public static final long REMOTE_PROCESS_RUNNING_WAIT

Valeur constante : 15 000 (0x0000000000003a98)

SETUP_REMOTE_DIR_TIMEOUT

public static final long SETUP_REMOTE_DIR_TIMEOUT

Valeur constante : 600 000 (0x00000000000927c0)

Des champs

GLOBAL_REMOTE_CONFIG

public static final String GLOBAL_REMOTE_CONFIG

PROTO_RESULT_NAME

public static final String PROTO_RESULT_NAME

REMOTE_CONFIG

public static final String REMOTE_CONFIG

REMOTE_USER_DIR

public static final String REMOTE_USER_DIR

START_FEATURE_SERVER

public static final String START_FEATURE_SERVER

STDERR_FILE

public static final String STDERR_FILE

STDOUT_FILE

public static final String STDOUT_FILE

Constructeurs publics

Exécution d'appel à distance

public RemoteInvocationExecution ()

Méthodes publiques

faireNettoyer

public void doCleanUp (IInvocationContext context, 
                IConfiguration config, 
                Throwable exception)

Exécutez les étapes de nettoyage target_preparer et multi_target_preparer. Est-ce que les appareils nettoient.

Paramètres
context IInvocationContext : le IInvocationContext de l'invocation.

config IConfiguration : la IConfiguration de ce test.

exception Throwable : l'exception d'origine levée par le test en cours d'exécution.

faireConfiguration

public void doSetup (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger logger)

Exécutez l’étape de configuration target_preparer et multi_target_preparer. Effectue la configuration de tous les appareils requis pour l'exécution du test.

Paramètres
testInfo TestInformation : la TestInformation de l’invocation.

config IConfiguration : la IConfiguration de ce test.

logger ITestLogger : le ITestLogger pour signaler les journaux d'échecs d'installation.

Jetés
BuildError
DeviceNotAvailableException
TargetSetupError

faireDémontage

public void doTeardown (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger logger, 
                Throwable exception)

Exécutez l’étape de démontage target_preparer et multi_target_preparer. Les appareils sont-ils démontés associés à l'installation ?

Paramètres
testInfo TestInformation : la TestInformation de l’invocation.

config IConfiguration : la IConfiguration de ce test.

logger ITestLogger : le ITestLogger pour signaler les journaux.

exception Throwable : l'exception d'origine levée par le test en cours d'exécution.

récupérerBuild

public boolean fetchBuild (TestInformation testInfo, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener listener)

Exécutez l’étape build_provider de l’appel.

Paramètres
testInfo TestInformation : la TestInformation de l’invocation.

config IConfiguration : la IConfiguration de ce test.

rescheduler IRescheduler : le IRescheduler , pour replanifier des parties de l'invocation pour exécution sur une ou plusieurs autres ressources.

listener ITestInvocationListener : l' ITestInvocation pour signaler les échecs de téléchargement de build.

Retour
boolean Vrai si nous avons téléchargé avec succès la version, faux sinon.

Jetés
BuildRetrievalError
DeviceNotAvailableException

exécuter des tests

public void runTests (TestInformation info, 
                IConfiguration config, 
                ITestInvocationListener listener)

Exécute le test.

Paramètres
info TestInformation : le TestInformation avec lequel exécuter les tests.

config IConfiguration : la IConfiguration à exécuter

listener ITestInvocationListener : le ITestInvocationListener des résultats de tests

Méthodes protégées

personnaliserDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

Donnez la possibilité de personnaliser une partie de l'appareil avant preInvocationSetup.

Paramètres
config IConfiguration : La configuration de l'invocation.

context IInvocationContext : Le contexte d'appel actuel.

getAdbVersion

protected String getAdbVersion ()

Renvoie la version adb utilisée pour l'appel.

Retour
String