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 |
void | setDevice ( ITestDevice device) Test edilen cihazı enjekte edin. |
void | setMetricCollectors ( collectors) setMetricCollectors ( collectors) Test çalıştırması için tanımlanan |
boolean | shouldRetry (int attemptJustExecuted, previousResults, skipList) shouldRetry (int attemptJustExecuted, previousResults, skipList) shouldRetry (int attemptJustExecuted, previousResults, skipList) |
split (int shardCountHint) Çalıştırılmaya çalışılan shardCount'u da sağlayan |
Kamu inşaatçıları
KuruluCihazlarTest
public InstalledInstrumentationsTest ()
Genel yöntemler
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 | TestRunResult listesi. |
skipList |
İadeler | |
---|---|
boolean | Yeniden denememiz gerekiyorsa doğru, aksi takdirde yanlış. |
Atar | |
---|---|
DeviceNotAvailableException |
bölmek
publicsplit (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 |