SandboxedInvocationExecution

public class SandboxedInvocationExecution
extends InvocationExecution

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


Çağrının özel korumalı alan yürütmesi: Bu, korumalı alandayken komutu çalıştırdığımız InvocationExection'dur. Derleme, bağlamda zaten mevcut olmalıdır.

Özet

Herkese açık kurucular

SandboxedInvocationExecution()

Herkese açık yöntemler

void cleanUpBuilds(IInvocationContext context, IConfiguration config)

build_provider temizleme adımını yürütün.

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

Çağrının build_provider adımını yürütün.

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

Çağrının her cihaz parçası için ITestDevice#postInvocationTearDown(Throwable) çağrısı yapın.

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

Çağrının her cihaz parçası için ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) çağrısı yapın.

Korunan yöntemler

getPreparersToRun(IConfiguration config, String deviceName)

Bu cihazda çalıştırılacak hazırlayıcıların listesini alın.

void logHostAdb(IConfiguration config, ITestLogger logger)

Günlükleri $TMPDIR/adb.$UID.log dosyasından toplayın.

Herkese açık kurucular

SandboxedInvocationExecution

public SandboxedInvocationExecution ()

Herkese açık yöntemler

cleanUpBuilds

public void cleanUpBuilds (IInvocationContext context, 
                IConfiguration config)

build_provider temizleme adımını yürütün. Derleme getirmeyle ilişkilidir.

Parametreler
context IInvocationContext: Çağrının IInvocationContext.

config IConfiguration: Bu test çalıştırmasının IConfiguration.

fetchBuild

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

Çağrının build_provider adımını yürütün.

Parametreler
testInfo TestInformation: Çağrının TestInformation.

config IConfiguration: Bu test çalıştırmasının IConfiguration.

rescheduler IRescheduler: Çağırmanın başka kaynaklarda yürütülecek şekilde yeniden planlanması için IRescheduler

listener ITestInvocationListener: derleme indirme hatalarını bildirmek için ITestInvocation.

İlerlemeler
boolean Derlemeyi başarıyla indirdiysek doğru, aksi takdirde yanlış değerini alır.

Atışlar
BuildRetrievalError
DeviceNotAvailableException

runDevicePostInvocationTearDown

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

Çağrının her cihaz parçası için ITestDevice#postInvocationTearDown(Throwable) çağrısı yapın.

Parametreler
context IInvocationContext: Çağrının IInvocationContext.

config IConfiguration: Bu test çalıştırmasının IConfiguration.

exception Throwable: Çalışan test tarafından oluşturulan orijinal istisna (varsa).

runDevicePreInvocationSetup

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

Çağrının her cihaz parçası için ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) çağrısı yapın.

Parametreler
context IInvocationContext: Çağrının IInvocationContext.

config IConfiguration: Bu test çalıştırmasının IConfiguration.

logger ITestLogger: Günlükleri bildirmek için ITestLogger.

Atışlar
DeviceNotAvailableException
TargetSetupError

Korunan yöntemler

getPreparersToRun

protected  getPreparersToRun (IConfiguration config, 
                String deviceName)

Bu cihazda çalıştırılacak hazırlayıcıların listesini alın.

Laboratuvar hazırlayanların korumalı alan alt öğesinde çalıştırılmasını kısıtlamak için korumalı alan sınıflarında geçersiz kılındı

Parametreler
config IConfiguration

deviceName String

İlerlemeler

logHostAdb

protected void logHostAdb (IConfiguration config, 
                ITestLogger logger)

Günlükleri $TMPDIR/adb.$UID.log dosyasından toplayın.

Parametreler
config IConfiguration

logger ITestLogger