GranularRetriableTestWrapper.StartEndCollector
public
class
GranularRetriableTestWrapper.StartEndCollector
extends ResultAndLogForwarder
| java.lang.Object | |||
| ↳ | com.android.tradefed.result.ResultForwarder | ||
| ↳ | com.android.tradefed.result.ResultAndLogForwarder | ||
| ↳ | com.android.tradefed.testtype.suite.GranularRetriableTestWrapper.StartEndCollector | ||
Eksik koşu başlangıcı ve bitişini yakalamak için sınıf yardımcısı.
Özet
Alanlar | |
|---|---|
public
TestDescription |
mCurrentTest
|
public
boolean |
mRunEndedReported
|
public
boolean |
mRunStartReported
|
public
boolean |
mTestInProgress
|
Herkese açık yöntemler | |
|---|---|
void
|
testEnded(TestDescription test, long endTime, Map<String, String> testMetrics)
|
void
|
testEnded(TestDescription test, long endTime, HashMap<String, MetricMeasurement.Metric> testMetrics)
Bitiş zamanını doğrudan belirtebileceğimiz |
void
|
testEnded(TestDescription test, Map<String, String> testMetrics)
|
void
|
testEnded(TestDescription test, HashMap<String, MetricMeasurement.Metric> testMetrics)
Tek bir test senaryosunun yürütülmesinin sonunu bildirir. |
void
|
testRunEnded(long elapsedTimeMillis, Map<String, String> runMetrics)
|
void
|
testRunEnded(long elapsedTime, HashMap<String, MetricMeasurement.Metric> runMetrics)
Test çalıştırmasının sonunu bildirir. |
void
|
testRunStarted(String runName, int testCount)
Test çalıştırmasının başlangıcını bildirir. |
void
|
testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
Test çalıştırmasının başlangıcını bildirir. |
void
|
testRunStarted(String runName, int testCount, int attemptNumber)
Test çalıştırmasının başlangıcını bildirir. |
void
|
testStarted(TestDescription test, long startTime)
Testin ne zaman başlatıldığını da belirttiğimiz |
void
|
testStarted(TestDescription test)
Tek bir test senaryosunun başlangıcını bildirir. |
Alanlar
mRunEndedReported
public boolean mRunEndedReported
mRunStartReported
public boolean mRunStartReported
mTestInProgress
public boolean mTestInProgress
Herkese açık yöntemler
testEnded
public void testEnded (TestDescription test, long endTime, Map<String, String> testMetrics)
| Parametreler | |
|---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
Map |
testEnded
public void testEnded (TestDescription test, long endTime, HashMap<String, MetricMeasurement.Metric> testMetrics)
Bitiş zamanını doğrudan belirtebileceğimiz testEnded(TestDescription,Map) işlevinin alternatifi. Doğru ölçüm için testStarted(TestDescription,long) ile birlikte kullanın.
| Parametreler | |
|---|---|
test |
TestDescription: Testi tanımlar. |
endTime |
long: Testin sona erdiği zaman (System.currentTimeMillis() üzerinden ölçülür) |
testMetrics |
HashMap: yayınlanan metriklerin Map |
testEnded
public void testEnded (TestDescription test, Map<String, String> testMetrics)
| Parametreler | |
|---|---|
test |
TestDescription |
testMetrics |
Map |
testEnded
public void testEnded (TestDescription test, HashMap<String, MetricMeasurement.Metric> testMetrics)
Tek bir test senaryosunun yürütülmesinin sonunu bildirir.
testFailed(TestDescription, FailureDescription) çağrılmadıysa bu test başarılı olur. Ayrıca, test senaryosunun yürütülmesi sırasında yayınlanmış olabilecek tüm anahtar/değer metriklerini de döndürür.
| Parametreler | |
|---|---|
test |
TestDescription: Testi tanımlar. |
testMetrics |
HashMap: yayınlanan metriklerin Map |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
Map<String, String> runMetrics)| Parametreler | |
|---|---|
elapsedTimeMillis |
long |
runMetrics |
Map |
testRunEnded
public void testRunEnded (long elapsedTime,
HashMap<String, MetricMeasurement.Metric> runMetrics)Test çalıştırmasının sonunu bildirir. DÜZELTİLMESİ GEREKEN YER: Farklı türde iki Map<> arayüzümüz olamaz. Bu nedenle burada HashMap kullanmamız gerekiyor.
| Parametreler | |
|---|---|
elapsedTime |
long: Cihazın bildirdiği geçen süre (milisaniye cinsinden) |
runMetrics |
HashMap: Metric ile yapılan bir test çalıştırmasının sonunda bildirilen anahtar/değer çiftleri. |
testRunStarted
public void testRunStarted (String runName,
int testCount)Test çalıştırmasının başlangıcını bildirir.
| Parametreler | |
|---|---|
runName |
String: Test çalıştırmasının adı |
testCount |
int: test çalıştırmasındaki toplam test sayısı |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)Test çalıştırmasının başlangıcını bildirir.
| Parametreler | |
|---|---|
runName |
String: Test çalıştırmasının adı |
testCount |
int: test çalıştırmasındaki toplam test sayısı |
attemptNumber |
int: Aynı runName'in birden fazla kez çalıştırılan farklı denemelerini tanımlayan sipariş numarası. attemptNumber, 0 tabanlıdır ve her yeni çalıştırmada artırılmalıdır. Örneğin, bir test 3 kez ayrıntılı olarak yeniden denenirse aynı runName altında toplam 4 çalıştırma olmalı ve attemptNumber 0 ile 3 arasında olmalıdır. |
startTime |
long: Çalıştırmanın başladığı zaman (System.currentTimeMillis() üzerinden ölçülür) |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)Test çalıştırmasının başlangıcını bildirir.
| Parametreler | |
|---|---|
runName |
String: Test çalıştırmasının adı |
testCount |
int: test çalıştırmasındaki toplam test sayısı |
attemptNumber |
int: Aynı runName'in birden fazla kez çalıştırılan farklı denemelerini tanımlayan sipariş numarası. attemptNumber, 0 tabanlıdır ve her yeni çalıştırmada artırılmalıdır. Örneğin, bir test 3 kez ayrıntılı olarak yeniden denenirse aynı runName altında toplam 4 çalıştırma olmalı ve attemptNumber 0 ile 3 arasında olmalıdır. |
testStarted
public void testStarted (TestDescription test, long startTime)
Testin ne zaman başlatıldığını da belirttiğimiz testStarted(TestDescription) yerine, doğru ölçüm için testEnded(TestDescription,long,Map) ile birlikte kullanılır.
| Parametreler | |
|---|---|
test |
TestDescription: Testi tanımlar. |
startTime |
long: Testin başladığı zaman (System.currentTimeMillis() üzerinden ölçülür) |
testStarted
public void testStarted (TestDescription test)
Tek bir test senaryosunun başlangıcını bildirir. Eski arayüz, mümkün olduğunda testStarted(TestDescription) kullanılmalıdır.
| Parametreler | |
|---|---|
test |
TestDescription: Testi tanımlar. |