ParentSandboxInvocationExecution

public class ParentSandboxInvocationExecution
extends InvocationExecution

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


Korumalı alan çalıştırırken üst çağrı özel işlemleri için InvocationExecution sürümü.

Özet

Herkese açık kurucular

ParentSandboxInvocationExecution()

Herkese açık yöntemler

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

target_preparer ve multi_target_preparer cleanUp adımını yürütün.

void doSetup(TestInformation testInfo, IConfiguration config, ITestLogger listener)

target_preparer ve multi_target_preparer setUp adımlarını yürütün.

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

target_preparer ve multi_target_preparer teardown 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 reportLogs(ITestDevice device, ITestLogger logger, TestInvocation.Stage stage)

Bazı cihaz günlüklerini çağrının farklı aşamalarında raporlayı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.

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

Testi çalıştırır.

Korunan yöntemler

IConfigurationFactory getFactory()

Yapılandırmayı oluşturmak için kullanılan IConfigurationFactory değerini döndürür.

getLabPreparersToRun(IConfiguration config, String deviceName)

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

IRunUtil getRunUtil()
getTargetPreparersToRun(IConfiguration config, String deviceName)

Bu cihazda çalışacak hedef hazırlayıcıların listesini alın.

boolean prepareAndRunSandbox(TestInformation info, IConfiguration config, ITestInvocationListener listener)

Korumalı alanı çalıştırmanın sonuç durumunu döndürür.

Herkese açık kurucular

ParentSandboxInvocationExecution

public ParentSandboxInvocationExecution ()

Herkese açık yöntemler

doCleanUp

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

target_preparer ve multi_target_preparer cleanUp adımını yürütün. Cihazlar temizlenir.

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

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

exception Throwable: Testin çalışmasıyla ortaya çıkan orijinal istisna.

doSetup

public void doSetup (TestInformation testInfo, 
                IConfiguration config, 
                ITestLogger listener)

target_preparer ve multi_target_preparer setUp adımlarını yürütün. Testin çalışması için gereken tüm cihazlar kurulu mu?

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

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

listener ITestLogger: Kurulum hatalarını bildirmek için ITestLogger.

Atışlar
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

target_preparer ve multi_target_preparer teardown adımını yürütün. Kurulumla ilişkili cihazlar kaldırılır mı?

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

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

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

exception Throwable: Testin çalışmasıyla ortaya çıkan orijinal istisna.

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 bölümlerini başka kaynaklarda yürütmek için yeniden planlamak amacıyla 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

reportLogs

public void reportLogs (ITestDevice device, 
                ITestLogger logger, 
                TestInvocation.Stage stage)

Bazı cihaz günlüklerini çağrının farklı aşamalarında raporlayın. Örneğin: logcat.

Parametreler
device ITestDevice: Günlüklerin raporlanacağı cihaz.

logger ITestLogger: Günlüklerin günlüğe kaydedicisi.

stage TestInvocation.Stage: Çağrının hangi aşamasında olduğumuzu belirtir.

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

runTests

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

Testi çalıştırır.

Parametreler
info TestInformation: Testlerin çalıştırılacağı TestInformation.

config IConfiguration: çalıştırılacak IConfiguration

listener ITestInvocationListener: test sonuçlarının ITestInvocationListener

Korunan yöntemler

getFactory

protected IConfigurationFactory getFactory ()

Yapılandırmayı oluşturmak için kullanılan IConfigurationFactory değerini döndürür.

İlerlemeler
IConfigurationFactory

getLabPreparersToRun

protected  getLabPreparersToRun (IConfiguration config, 
                String deviceName)

Bu cihazda çalıştırılacak laboratuvar hazırlayıcılarını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

getRunUtil

protected IRunUtil getRunUtil ()

İlerlemeler
IRunUtil

getTargetPreparersToRun

protected  getTargetPreparersToRun (IConfiguration config, 
                String deviceName)

Bu cihazda çalışacak hedef 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

prepareAndRunSandbox

protected boolean prepareAndRunSandbox (TestInformation info, 
                IConfiguration config, 
                ITestInvocationListener listener)

Korumalı alanı çalıştırmanın sonuç durumunu döndürür.

Parametreler
info TestInformation

config IConfiguration

listener ITestInvocationListener

İlerlemeler
boolean