InstalledInstrumentationsTest

public class InstalledInstrumentationsTest
extends Object implements IAutoRetriableTest, IConfigurationReceiver, IDeviceTest, IMetricCollectorReceiver, IShardableTest

java.lang.Object
   ↳ com.android.tradefed.testtype.InstalledInstrumentationsTest


Mevcut cihazda bulunan tüm enstrümantasyonu çalıştırır.

Özet

Herkese açık kurucular

InstalledInstrumentationsTest()

Herkese açık yöntemler

ITestDevice getDevice()

Test cihazını alın.

void run(TestInformation testInfo, ITestInvocationListener listener)

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

void setConfiguration(IConfiguration configuration)

Kullanımdaki IConfiguration'ü enjekte eder.

void setDevice(ITestDevice device)

Test edilen cihazı enjekte edin.

void setMetricCollectors( collectors)

Test çalışması için tanımlanan IMetricCollector öğelerinin listesini ayarlar.

boolean shouldRetry(int attemptJustExecuted, previousResults, skipList)

ERROR(IRetryDecision.shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision.shouldRetry(IRemoteTest, int, List)) öğesinden yetki verildi.

split(int shardCountHint)

split() işlevinin alternatif sürümü. Bu sürüm, çalıştırılmaya çalışılan shardCount değerini de sağlar.

Herkese açık kurucular

InstalledInstrumentationsTest

public InstalledInstrumentationsTest ()

Herkese açık yöntemler

getDevice

public ITestDevice getDevice ()

Test cihazını alın.

İlerlemeler
ITestDevice ITestDevice

çalıştır

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

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

Parametreler
testInfo TestInformation: Test çalıştırmak için yararlı bilgiler içeren TestInformation nesnesi.

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

Atışlar
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

Kullanımdaki IConfiguration'ü enjekte eder.

Parametreler
configuration IConfiguration

setDevice

public void setDevice (ITestDevice device)

Test edilen cihazı enjekte edin.

Parametreler
device ITestDevice: Kullanılacak ITestDevice

setMetricCollectors

public void setMetricCollectors ( collectors)

Test çalışması için tanımlanan IMetricCollector öğelerinin listesini ayarlar.

Parametreler
collectors

shouldRetry

public boolean shouldRetry (int attemptJustExecuted, 
                 previousResults, 
                 skipList)

ERROR(IRetryDecision.shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision.shouldRetry(IRemoteTest, int, List)) öğesinden yetki verildi. Yeniden deneme yapılıp yapılmayacağına karar verin. Ayrıca, yeniden denemek için IRemoteTest'te gerekli değişiklikleri yapın (Filtre uygulama, sonraki çalıştırmayı hazırlama vb.).

Parametreler
attemptJustExecuted int: Az önce çalıştırdığımız deneme sayısı.

previousResults : Henüz çalıştırılan testin TestRunResult listesi.

skipList : Yeniden denenmemesi gereken öğe grubu.

İlerlemeler
boolean Yeniden denememiz gerekiyorsa doğru, aksi takdirde yanlış değerini döndürür.

Atışlar
DeviceNotAvailableException

ayır

public  split (int shardCountHint)

split() işlevinin alternatif sürümü. Bu sürüm, çalıştırılmaya çalışılan shardCount değerini de sağlar. Bu, bazen keyfi olarak karar veremeyen test çalıştırıcıları için yararlıdır.

Parametreler
shardCountHint int: Parça sayısı denemesi.

İlerlemeler
Ayrı ayrı çalıştırılacak alt testler koleksiyonu veya test şu anda bölünemiyorsa null