FilteredResultForwarder

public class FilteredResultForwarder
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.result.FilteredResultForwarder


Yalnızca TestDescription izin verilenler listesinin raporlanmasına izin veren ResultForwarder varyantı.

Özet

Herkese açık oluşturucular

FilteredResultForwarder(Collection<TestDescription> allowedTests, ITestInvocationListener... listeners)

Herkese açık yöntemler

void testAssumptionFailure(TestDescription test, FailureDescription failure)

Birim testi, yanlış olduğu varsayılan bir koşulu işaretlediğinde çağrılır.

void testAssumptionFailure(TestDescription test, String trace)

Birim testi, yanlış olduğu varsayılan bir koşulu işaretlediğinde çağrılır.

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 testEnded(TestDescription,Map) işlevinin alternatifi.

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 testFailed(TestDescription test, FailureDescription failure)

Tek bir test senaryosunun başarısızlığını bildirir.

void testFailed(TestDescription test, String trace)

Tek bir test senaryosunun başarısızlığını bildirir.

void testIgnored(TestDescription test)

Genellikle bir test yöntemi org.junit.Ignore ile açıklama eklenmiş olduğundan bir test çalıştırılmayacağı zaman çağrılır.

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.

void testStarted(TestDescription test)

Tek bir test senaryosunun başlangıcını bildirir.

Herkese açık oluşturucular

FilteredResultForwarder

public FilteredResultForwarder (Collection<TestDescription> allowedTests, 
                ITestInvocationListener... listeners)

Parametreler
allowedTests Collection

listeners ITestInvocationListener

Herkese açık yöntemler

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Birim testi, yanlış olduğu varsayılan bir koşulu işaretlediğinde çağrılır.

Parametreler
test TestDescription: Testi tanımlar.

failure FailureDescription: FailureDescription arızayı ve bağlamını açıklayın.

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Birim testi, yanlış olduğu varsayılan bir koşulu işaretlediğinde çağrılır.

Parametreler
test TestDescription: Testi tanımlar.

trace String: Hatayla sonuçlanan yığın izleme

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

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Tek bir test senaryosunun başarısızlığını bildirir.

testStarted ve testEnded arasında çağrılır.

Parametreler
test TestDescription: Testi tanımlar.

failure FailureDescription: FailureDescription arızayı ve bağlamını açıklayın.

testFailed

public void testFailed (TestDescription test, 
                String trace)

Tek bir test senaryosunun başarısızlığını bildirir.

testStarted ve testEnded arasında çağrılır.

Parametreler
test TestDescription: Testi tanımlar.

trace String: Hatayla sonuçlanan yığın izleme

testIgnored

public void testIgnored (TestDescription test)

Genellikle bir test yöntemi org.junit.Ignore ile açıklama eklenmiş olduğundan bir test çalıştırılmayacağı zaman çağrılır.

Parametreler
test TestDescription: Testi tanımlar.

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.