RemoteInvocationExecution

public class RemoteInvocationExecution
extends InvocationExecution

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


Implémentation de InvocationExecution qui gère 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

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 target_preparer et multi_target_preparer.

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

Exécutez l'étape de démontage de 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)

Permet de personnaliser certains éléments de l'appareil avant preInvocationSetup.

String getAdbVersion()

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

Constantes

JOIN_CLEAN_TIMEOUT_MS

public static final long JOIN_CLEAN_TIMEOUT_MS

Valeur constante : 120000 (0x000000000001d4c0)

LAUNCH_EXTRA_DEVICE

public static final long LAUNCH_EXTRA_DEVICE

Valeur constante : 900000 (0x00000000000dbba0)

NEW_USER_TIMEOUT

public static final long NEW_USER_TIMEOUT

Valeur constante : 300000 (0x00000000000493e0)

PULL_RESULT_TIMEOUT

public static final long PULL_RESULT_TIMEOUT

Valeur constante : 180000 (0x000000000002bf20)

PUSH_TF_TIMEOUT

public static final long PUSH_TF_TIMEOUT

Valeur constante : 150000 (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 : 600000 (0x00000000000927c0)

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

RemoteInvocationExecution

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. Les appareils sont-ils nettoyés ?

Paramètres
context IInvocationContext: IInvocationContext de l'appel.

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

exception Throwable: exception d'origine générée par l'exécution du test.

doSetup

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 requise pour l'exécution du test.

Paramètres
testInfo TestInformation: TestInformation de l'appel.

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

logger ITestLogger: ITestLogger pour générer des journaux d'échec de configuration.

Génère
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

Exécutez l'étape de démontage de target_preparer et multi_target_preparer. Les appareils associés à la configuration sont-ils supprimés ?

Paramètres
testInfo TestInformation: TestInformation de l'appel.

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

logger ITestLogger: ITestLogger pour générer des journaux.

exception Throwable: exception d'origine générée par l'exécution du test.

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: TestInformation de l'appel.

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

rescheduler IRescheduler: IRescheduler, pour reprogrammer des parties de l'appel à exécuter sur une ou plusieurs autres ressources

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

Renvoie
boolean "True" si la compilation a bien été téléchargée, ou "false" dans le cas contraire.

Génère
BuildRetrievalError
DeviceNotAvailableException

runTests

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

Exécute le test.

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

config IConfiguration: IConfiguration à exécuter

listener ITestInvocationListener: ITestInvocationListener des résultats des tests

Méthodes protégées

customizeDevicePreInvocation

protected void customizeDevicePreInvocation (IConfiguration config, 
                IInvocationContext context)

Permet de personnaliser certains éléments de l'appareil avant preInvocationSetup.

Paramètres
config IConfiguration: configuration de l'appel.

context IInvocationContext: contexte d'appel actuel.

getAdbVersion

protected String getAdbVersion ()

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

Renvoie
String