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 kurucular

FilteredResultForwarder( allowedTests, ITestInvocationListener... listeners)

Herkese açık yöntemler

void testAssumptionFailure(TestDescription test, FailureDescription failure)

Bir atomik test, yanlış bir koşulu varsaydığını işaretlediğinde çağrılır

void testAssumptionFailure(TestDescription test, String trace)

Bir atomik test, yanlış bir koşulu varsaydığını işaretlediğinde çağrılır

void testEnded(TestDescription test, testMetrics)

Tek bir testin yürütülmesinin sonunu bildirir.

void testEnded(TestDescription test, long endTime, testMetrics)

Bitiş zamanını doğrudan belirtebildiğimiz ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map))'e alternatif.

void testFailed(TestDescription test, FailureDescription failure)

Tek bir test durumunun başarısız olduğunu bildirir.

void testFailed(TestDescription test, String trace)

Tek bir test durumunun başarısız olduğunu bildirir.

void testIgnored(TestDescription test)

Genellikle bir test yöntemi org.junit.Ignore ile eklendiği için test çalıştırılmadığında çağrılır.

void testStarted(TestDescription test, long startTime)

Doğru ölçüm için ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) ile birlikte kullanıldığında, testin ne zaman başlatıldığını da belirttiğimiz testStarted(com.android.tradefed.result.TestDescription)'e alternatiftir.

void testStarted(TestDescription test)

Tek bir testin başlangıcını bildirir.

Herkese açık kurucular

FilteredResultForwarder

public FilteredResultForwarder ( allowedTests, 
                ITestInvocationListener... listeners)

Parametreler
allowedTests

listeners ITestInvocationListener

Herkese açık yöntemler

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Bir atomik test, yanlış bir koşulu varsaydığını işaretlediğinde çağrılır

Parametreler
test TestDescription: Testi tanımlar

failure FailureDescription: FailureDescription hatayı ve bağlamını açıklayan.

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Bir atomik test, yanlış bir koşulu varsaydığını işaretlediğinde çağrılır

Parametreler
test TestDescription: Testi tanımlar

trace String: Hatanın yığın izlemesi

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Tek bir testin yürütülmesinin sonunu bildirir.

testFailed(TestDescription, FailureDescription) çağrılmadıysa bu test başarılıdır. Ayrıca, test senaryosunun yürütülmesi sırasında yayınlanmış olabilecek tüm anahtar/değer metriklerini döndürür.

Parametreler
test TestDescription: Testi tanımlar

testMetrics : Yayınlanan metriklerin ERROR(/Map)

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Bitiş zamanını doğrudan belirtebildiğimiz ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map))'e alternatif. Doğru ölçüm için testStarted(com.android.tradefed.result.TestDescription, long) ile birlikte kullanın.

Parametreler
test TestDescription: Testi tanımlar

endTime long: System.currentTimeMillis() aracılığıyla ölçülen, testin sona erdiği zaman

testMetrics : Yayınlanan metriklerin ERROR(/Map)

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Tek bir test durumunun başarısız olduğunu bildirir.

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

Parametreler
test TestDescription: Testi tanımlar

failure FailureDescription: FailureDescription hatayı ve bağlamını açıklayan.

testFailed

public void testFailed (TestDescription test, 
                String trace)

Tek bir test durumunun başarısız olduğunu bildirir.

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

Parametreler
test TestDescription: Testi tanımlar

trace String: Hatanın yığın izlemesi

testIgnored

public void testIgnored (TestDescription test)

Genellikle bir test yöntemi org.junit.Ignore ile eklendiği için test çalıştırılmadığında çağrılır.

Parametreler
test TestDescription: Testi tanımlar

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Doğru ölçüm için ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) ile birlikte kullanıldığında, testin ne zaman başlatıldığını da belirttiğimiz testStarted(com.android.tradefed.result.TestDescription)'e alternatiftir.

Parametreler
test TestDescription: Testi tanımlar

startTime long: System.currentTimeMillis() aracılığıyla ölçülen, testin başladığı zaman

testStarted

public void testStarted (TestDescription test)

Tek bir testin başlangıcını bildirir. Eski arayüz, mümkün olduğunda testStarted(com.android.tradefed.result.TestDescription) kullanılmalıdır.

Parametreler
test TestDescription: Testi tanımlar