Temsilci Çağrı Yürütme

public class DelegatedInvocationExecution
extends InvocationExecution

java.lang.Nesne
com.android.tradefed.invoker.InvocationExecution
com.android.tradefed.invoker.DelegatedInvocationExecution


Yürütmeyi başka bir Tradefed ikili dosyasına devreden InvocationExecution .

Özet

Alanlar

public static final String DELEGATED_MODE_VAR

Varsa, çağrı yetkilendirilmiş bir modda yürütülüyor

Kamu inşaatçıları

DelegatedInvocationExecution ()

Genel yöntemler

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

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

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

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

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

target_preparer ve multi_target_preparer sökme adımını yürütün.

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

Çağrının farklı aşamalarında bazı cihaz günlüklerini bildirin.

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

Çağrının her bir aygıt bölümü için ITestDevice#postInvocationTearDown(Throwable) .

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

Çağrının her cihaz bölümü için ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) .

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

Testi çalıştırır.

boolean shardConfig ( IConfiguration config, TestInformation testInfo, IRescheduler rescheduler, ITestLogger logger)

Konfigürasyonu, paralel olarak birden çok kaynak üzerinde çalışacak şekilde yeniden zamanlanacak şekilde alt konfigürasyonlara ayırmaya çalışın.

Alanlar

DELEGATED_MODE_VAR

public static final String DELEGATED_MODE_VAR

Varsa, çağrı yetkilendirilmiş bir modda yürütülüyor

Kamu inşaatçıları

Temsilci Çağrı Yürütme

public DelegatedInvocationExecution ()

Genel yöntemler

temizlik

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

target_preparer ve multi_target_preparer temizleme adımını yürütün. Cihazlar temizleniyor mu?

parametreler
context IInvocationContext : IInvocationContext .

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

exception Throwable : test çalışması tarafından oluşturulan orijinal istisna.

kurulum

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

target_preparer ve multi_target_preparer kurulum adımını yürütün. Testin çalışması için gereken tüm cihaz kurulumunu yapar.

parametreler
testInfo TestInformation : TestInformation .

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

listener ITestLogger : kurulum hataları günlüklerini bildirmek için ITestLogger .

atar
BuildError
DeviceNotAvailableException
TargetSetupError

doTeardown

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

target_preparer ve multi_target_preparer sökme adımını yürütün. Cihazlar kurulumla ilişkili olarak yırtılır mı?

parametreler
testInfo TestInformation : TestInformation .

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

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

exception Throwable : test çalışması tarafından oluşturulan orijinal istisna.

rapor günlükleri

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

Çağrının farklı aşamalarında bazı cihaz günlüklerini bildirin. Örneğin: logcat.

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

logger ITestLogger : Günlükler için günlükçü.

stage TestInvocation.Stage : İçinde bulunduğumuz invokasyon aşaması.

runDevicePostInvocationTearDown

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

Çağrının her bir aygıt bölümü için ITestDevice#postInvocationTearDown(Throwable) .

parametreler
context IInvocationContext : IInvocationContext .

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

exception Throwable : Varsa, çalışan test tarafından oluşturulan orijinal istisna.

runDeviceÖn Çağırma Kurulumu

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

Çağrının her cihaz bölümü için ERROR(ITestDevice#preInvocationSetup(IBuildInfo)/com.android.tradefed.device.ITestDevice#preInvocationSetup(com.android.tradefed.build.IBuildInfo) ITestDevice#preInvocationSetup(IBuildInfo)) .

parametreler
context IInvocationContext : IInvocationContext .

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

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

atar
DeviceNotAvailableException
TargetSetupError

runTestler

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

Testi çalıştırır.

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

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

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

shardConfig

public boolean shardConfig (IConfiguration config, 
                TestInformation testInfo, 
                IRescheduler rescheduler, 
                ITestLogger logger)

Yapılandırmayı, birden çok kaynakta paralel olarak çalışacak şekilde yeniden zamanlanacak şekilde alt yapılandırmalara bölmeye çalışın.

Bir parça sayısı 1'den büyükse, parça endeksleri ayarlayarak her parça için yapılandırmalar oluşturacak ve bunları yeniden planlayacaktır. Bir parça sayısı ayarlanmazsa, IShardHelper#shardConfig geri döner.

parametreler
config IConfiguration : geçerli IConfiguration .

testInfo TestInformation : Testlerin bilgilerini tutan TestInformation .

rescheduler IRescheduler : IRescheduler .

logger ITestLogger : ITestLogger , parçalama sırasında dosyayı günlüğe kaydetmek için kullanılır.

İadeler
boolean test parçalandıysa true . Aksi takdirde false