SandboxedInvocationExecution

public class SandboxedInvocationExecution
extends InvocationExecution

java.lang.Object
com.android.tradefed.invoker.InvocationExecution
com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution


Exécution spéciale sandbox de l'invocation : il s'agit de l'InvocationExection lorsque nous sommes à l'intérieur du sandbox exécutant la commande. La version devrait déjà être disponible dans le contexte.

Résumé

Constructeurs publics

SandboxedInvocationExecution ()

Méthodes publiques

void cleanUpBuilds (IInvocationContext context, IConfiguration config)

Exécutez l’étape de nettoyage build_provider.

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

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

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

Appelez ITestDevice#postInvocationTearDown(Throwable) pour chaque périphérique faisant partie de l’invocation.

void runDevicePreInvocationSetup (IInvocationContext context, IConfiguration config, ITestLogger logger)

Appelez l' ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) pour chaque appareil faisant partie de l'invocation.

Méthodes protégées

getPreparersToRun ( IConfiguration config, String deviceName)

Récupérez une liste de préparateurs à exécuter sur cet appareil.

void logHostAdb ( IConfiguration config, ITestLogger logger)

Collectez les journaux à partir de $TMPDIR/adb.$UID.log.

Constructeurs publics

SandboxedInvocationExecution

public SandboxedInvocationExecution ()

Méthodes publiques

cleanUpBuilds

public void cleanUpBuilds (IInvocationContext context, 
                IConfiguration config)

Exécutez l’étape de nettoyage build_provider. Associé à la récupération de build.

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

config IConfiguration : la IConfiguration de ce test.

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

runDevicePostInvocationTearDown

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

Appelez ITestDevice#postInvocationTearDown(Throwable) pour chaque périphérique faisant partie de l’invocation.

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, le cas échéant.

runDevicePreInvocationSetup

public void runDevicePreInvocationSetup (IInvocationContext context, 
                IConfiguration config, 
                ITestLogger logger)

Appelez l' ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) pour chaque appareil faisant partie de l'invocation.

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

config IConfiguration : la IConfiguration de ce test.

logger ITestLogger : le ITestLogger pour signaler les journaux.

Jetés
DeviceNotAvailableException
TargetSetupError

Méthodes protégées

getPreparersToRun

protected  getPreparersToRun (IConfiguration config, 
                String deviceName)

Récupérez une liste de préparateurs à exécuter sur cet appareil.

Remplacé dans les classes sandbox pour empêcher l'exécution des préparateurs de laboratoire dans l'enfant sandbox

Paramètres
config IConfiguration

deviceName String

Retour

logHostAdb

protected void logHostAdb (IConfiguration config, 
                ITestLogger logger)

Collectez les journaux à partir de $TMPDIR/adb.$UID.log.

Paramètres
config IConfiguration

logger ITestLogger