Korumalı Alana Sahip AramaYürütme

public class SandboxedInvocationExecution
extends InvocationExecution

Java.lang.Nesne
🎃 com.android.tradefed.invoker.InvocationExecution
  🎃 com.android.tradefed.invoker.sandbox.SandboxedInvocationExecution


Çağrının özel korumalı alan tarafından yürütülmesi: Bu, içinde komut dosyası çalıştırmanız gerekir. Derleme, bağlamda zaten mevcuttur.

Özet

Kamu inşaatçıları

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)

ITestDevice#postInvocationTearDown(Throwable) çağrılacaktır.

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

ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) çağrılacaktır.

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)

$TMPDIR/adb.$UID.log adresinden günlükleri toplayın.

Kamu inşaatçıları

Korumalı Alana Sahip AramaYürütme

public SandboxedInvocationExecution ()

Herkese açık yöntemler

clearUpBuilds

public void cleanUpBuilds (IInvocationContext context, 
                IConfiguration config)

Build_provider temizleme adımını yürütün. Derleme getirme işlemiyle ilişkilendirilir.

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

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

Getirme Derlemesi

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 değeri.

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

rescheduler IRescheduler: IRescheduler, çağrının bazı bölümlerinin yeniden planlanması için başka kaynakta yürütme

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

İlerlemeler
boolean Derlemeyi başarıyla indirdiğimizde true (doğru), aksi takdirde false (yanlış) değerini alır.

Fırlatma
BuildRetrievalError
DeviceNotAvailableException

ÇalıştırmaCihazPostInvocationTearDown

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

ITestDevice#postInvocationTearDown(Throwable) çağrılacaktır.

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

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

exception Throwable: Varsa çalıştırılan test tarafından oluşturulan orijinal istisna.

RunDevicePreInvocationSetup

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

ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) çağrılacaktır.

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

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

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

Fırlatma
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ırlayıcılarının korumalı alanda çalıştırılmasını kısıtlamak için korumalı alan sınıflarında geçersiz kılındı çocuk

Parametreler
config IConfiguration

deviceName String

İlerlemeler

logHostAdb

protected void logHostAdb (IConfiguration config, 
                ITestLogger logger)

$TMPDIR/adb.$UID.log adresinden günlükleri toplayın.

Parametreler
config IConfiguration

logger ITestLogger