Yüklü Enstrümantasyon Testi

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

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


Mevcut cihazda bulunan tüm araçları çalıştırır.

Özet

kamu inşaatçılar

InstalledInstrumentationsTest ()

Genel yöntemler

ITestDevice getDevice ()

Cihazı teste 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) setMetricCollectors ( collectors)

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

boolean shouldRetry (int attemptJustExecuted, previousResults) shouldRetry (int attemptJustExecuted, previousResults)

ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List)) temsilci ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List)) .

split (int shardCountHint)

Çalıştırılmaya çalışılan shardCount'u da sağlayan alternatif split() sürümü.

kamu inşaatçılar

Yüklü Enstrümantasyon Testi

public InstalledInstrumentationsTest ()

Genel yöntemler

cihaz almak

public ITestDevice getDevice ()

Cihazı teste alın.

İadeler
ITestDevice ITestDevice

koşmak

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

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

parametreler
testInfo 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

setCihaz

public void setDevice (ITestDevice device)

Test edilen cihazı enjekte edin.

parametreler
device ITestDevice : kullanılacak ITestDevice

setMetricToplayıcılar

public void setMetricCollectors ( collectors)

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

parametreler
collectors

yeniden denemeli

public boolean shouldRetry (int attemptJustExecuted, 
                 previousResults)

ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List)) temsilci ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List)) . Yeniden denemenin denenip denenmeyeceğine karar verin. Ayrıca yeniden denenecek IRemoteTest gerekli değişiklikleri yapın (Filtreleri uygulama, sonraki çalıştırmayı hazırlama vb.).

parametreler
attemptJustExecuted int : Az önce çalıştırdığımız girişimin sayısı.

previousResults : Az önce çalıştırılan testin TestRunResult listesi.

İadeler
boolean Yeniden denememiz gerekirse doğru, aksi takdirde yanlış.

Atar
DeviceNotAvailableException

bölmek

public  split (int shardCountHint)

Çalıştırılmaya çalışılan shardCount'u da sağlayan alternatif split() sürümü. Bu, bazen keyfi olarak karar veremeyen bazı test yürütücüleri için kullanışlıdır.

parametreler
shardCountHint int : denenen parça sayısı.

İadeler
ayrı olarak yürütülecek bir alt testler koleksiyonu veya test şu anda parçalanabilir değilse null