RemoteInvocationExecutionRemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

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


Implémentation de 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 l'étape de nettoyage target_preparer et multi_target_preparer.

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

Exécutez l'étape de configuration de 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 une chance 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

RemoteInvocationExecutionRemoteInvocationExecution

public RemoteInvocationExecution ()

Méthodes publiques

doCleanUp

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

Exécutez l'étape 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 cette exécution de test.

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

doSetup

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

Exécutez l'étape de configuration de target_preparer et multi_target_preparer. Effectue la configuration de tous les appareils nécessaires à l'exécution du test.

Paramètres
testInfo TestInformation : le TestInformation de l'invocation.

config IConfiguration : la IConfiguration de cette exécution de test.

logger ITestLogger : l' ITestLogger pour rapporter les journaux d'échecs d'installation.

Lance
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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 se démontent-ils associés à la configuration.

Paramètres
testInfo TestInformation : le TestInformation de l'invocation.

config IConfiguration : la IConfiguration de cette exécution de test.

logger ITestLogger : l' ITestLogger pour rapporter les logs.

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

fetchBuild

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

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

Paramètres
testInfo TestInformation : le TestInformation de l'invocation.

config IConfiguration : la IConfiguration de cette exécution de test.

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

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

Retour
boolean Vrai si nous avons réussi à télécharger la construction, faux sinon.

Lance
BuildRetrievalError
DeviceNotAvailableException

runTests

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 : l' ITestInvocationListener des résultats des tests

Méthodes protégées

personnaliserDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

Donnez une chance 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