KuruluCihazlarTest

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

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


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

Özet

Kamu inşaatçıları

InstalledInstrumentationsTest ()

Genel yöntemler

ITestDevice getDevice ()

Cihazı teste tabi tutun.

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 listesini ayarlar.

boolean shouldRetry (int attemptJustExecuted, previousResults, skipList) shouldRetry (int attemptJustExecuted, previousResults, skipList) 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)) .

split (int shardCountHint)

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

Kamu inşaatçıları

KuruluCihazlarTest

public InstalledInstrumentationsTest ()

Genel yöntemler

cihaz al

public ITestDevice getDevice ()

Cihazı teste tabi tutun.

İ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

setYapılandırma

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

setMetricCollectors

public void setMetricCollectors ( collectors)

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

Parametreler
collectors

Yeniden denemeli

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)) . Yeniden denemenin yapılıp yapılmayacağına karar verin. Ayrıca yeniden denenmek üzere IRemoteTest gerekli değişiklikleri de yapın (Filtreleri uygulama, sonraki çalıştırmayı hazırlama vb.).

Parametreler
attemptJustExecuted int : Az önce yürüttüğümüz denemenin sayısı.

previousResults : Az önce yürütülen testin TestRunResult listesi.

skipList : Tekrar denenmemesi gereken öğeler kümesi.

İadeler
boolean Yeniden denememiz gerekiyorsa doğru, aksi halde yanlış.

Atar
DeviceNotAvailableException

bölmek

public  split (int shardCountHint)

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

Parametreler
shardCountHint int : denenen parça sayımı.

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