SandboxedInvocationExecution

public class SandboxedInvocationExecution
extends InvocationExecution

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


Exécution spéciale de l'appel dans le bac à sable: il s'agit de l'InvocationExection lorsque nous dans le bac à sable en exécutant la commande. La compilation 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 partie de l'appareil appel.

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

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

Méthodes protégées

getPreparersToRun(IConfiguration config, String deviceName)

Récupérez la liste des préparateurs à exécuter sur cet appareil.

void logHostAdb(IConfiguration config, ITestLogger logger)

Récupérez les journaux 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é à l'extraction de la compilation.

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

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

Extraire

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, permettant de reprogrammer des parties de l'appel pour exécution sur une ou plusieurs autres ressources

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

Renvoie
boolean "True" si le build a bien été téléchargé, "false" dans le cas contraire.

Génère
BuildRetrievalError
DeviceNotAvailableException

runDevicePostInvocationSupprimer

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

Appelez ITestDevice#postInvocationTearDown(Throwable) pour chaque partie de l'appareil appel.

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 le test en cours d'exécution, le cas échéant.

runDevicePreInvocationSetup

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

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

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

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

logger ITestLogger: ITestLogger pour générer des rapports sur les journaux.

Génère
DeviceNotAvailableException
TargetSetupError

Méthodes protégées

getPreparersToRun

protected  getPreparersToRun (IConfiguration config, 
                String deviceName)

Récupérez la liste des préparateurs à exécuter sur cet appareil.

Remplacé dans les classes du bac à sable pour empêcher les préparateurs d'atelier de s'exécuter dans le bac à sable. enfant

Paramètres
config IConfiguration

deviceName String

Renvoie

logHostAdb

protected void logHostAdb (IConfiguration config, 
                ITestLogger logger)

Récupérez les journaux de $TMPDIR/adb.$UID.log.

Paramètres
config IConfiguration

logger ITestLogger