TestlerHavuz Anketi

public final class TestsPoolPoller
extends Object implements IRemoteTest , IConfigurationReceiver , ISystemStatusCheckerReceiver , IMetricCollectorReceiver

java.lang.Object
com.android.tradefed.invoker.shard.TestsPoolPoller


Bir test havuzunun tüm testlerini yürütmeye izin veren test sarmalayıcı. Testler başka bir TestsPoolPoller tarafından paylaşılabilir, bu nedenle senkronizasyon gerekir.

YAPILACAKLAR: Belirteç modülü/testleri için işleme ekleyin.

Özet

kamu inşaatçılar

TestsPoolPoller ( ITestsPool testsPool, CountDownLatch tracker)

IRemoteTest havuzunun sağlandığı Ctor.

Genel yöntemler

void run ( TestInformation info, ITestInvocationListener listener)

Testleri çalıştırır ve sonucu dinleyiciye bildirir.

void setConfiguration ( IConfiguration configuration)

Kullanımdaki IConfiguration enjekte eder.

void setLogRegistry ( ILogRegistry registry)
void setMetricCollectors ( collectors) setMetricCollectors ( collectors)

Test çalıştırması için tanımlanan IMetricCollector s listesini ayarlar.

void setSystemStatusChecker ( systemCheckers) setSystemStatusChecker ( systemCheckers)

Test için yapılandırmadan ISystemStatusChecker s'yi ayarlar.

kamu inşaatçılar

TestlerHavuz Anketi

public TestsPoolPoller (ITestsPool testsPool, 
                CountDownLatch tracker)

IRemoteTest havuzunun sağlandığı Ctor.

parametreler
testsPool ITestsPool : ITestsPool tüm testlerden oluşan havuzu.

tracker CountDownLatch : çalışan yoklayıcı sayısını almak için paylaşılan bir ERROR(/CountDownLatch) .

Genel yöntemler

koşmak

public void run (TestInformation info, 
                ITestInvocationListener listener)

Testleri çalıştırır ve sonucu dinleyiciye bildirir.

parametreler
info TestInformation : Testleri çalıştırmak için yararlı bilgiler içeren TestInformation nesnesi.

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

Atar
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Kullanımdaki IConfiguration enjekte eder.

parametreler
configuration IConfiguration

setLogRegistry

public void setLogRegistry (ILogRegistry registry)

parametreler
registry ILogRegistry

setMetricToplayıcılar

public void setMetricCollectors ( collectors)

Test çalıştırması için tanımlanan IMetricCollector s listesini ayarlar.

parametreler
collectors

setSystemStatusChecker

public void setSystemStatusChecker ( systemCheckers)

Test için yapılandırmadan ISystemStatusChecker s'yi ayarlar.

parametreler
systemCheckers