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

kamu inşaatçılar

FilteredResultForwarder ( allowedTests, ITestInvocationListener... listeners) FilteredResultForwarder ( allowedTests, ITestInvocationListener... listeners)

Genel yöntemler

void testAssumptionFailure ( TestDescription test, FailureDescription failure)

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

void testAssumptionFailure ( TestDescription test, String trace)

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

void testEnded ( TestDescription test, testMetrics) testEnded ( TestDescription test, testMetrics)

Tek bir test senaryosunun yürütme sonunu bildirir.

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

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

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çıklamalı olduğundan, bir 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 testin ne zaman başladığını da belirttiğimiz testStarted(com.android.tradefed.result.TestDescription) yöntemine alternatif .

void testStarted ( TestDescription test)

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

kamu inşaatçılar

FilteredResultForwarder

public FilteredResultForwarder ( allowedTests, 
                ITestInvocationListener... listeners)

parametreler
allowedTests

listeners ITestInvocationListener

Genel yöntemler

test Varsayım Başarısızlığı

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

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

parametreler
test TestDescription : testi tanımlar

failure FailureDescription : Hatayı ve içeriğini açıklayan FailureDescription .

test Varsayım Başarısızlığı

public void testAssumptionFailure (TestDescription test, 
                String trace)

Bir atomik test, yanlış olan 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

test Bitti

public void testEnded (TestDescription test, 
                 testMetrics)

Tek bir test senaryosunun yürütme sonunu bildirir.

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

parametreler
test TestDescription : testi tanımlar

testMetrics : yayılan metriklerde bir ERROR(/Map)

test Bitti

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

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

parametreler
test TestDescription : testi tanımlar

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

testMetrics : yayılan metriklerde bir ERROR(/Map)

test başarısız

public void testFailed (TestDescription test, 
                FailureDescription failure)

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

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

parametreler
test TestDescription : testi tanımlar

failure FailureDescription : Hatayı ve içeriğini açıklayan FailureDescription .

test başarısız

public void testFailed (TestDescription test, 
                String trace)

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

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

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 açıklamalı olduğundan, bir test çalıştırılmadığında çağrılır.

parametreler
test TestDescription : testi tanımlar

test başladı

public void testStarted (TestDescription test, 
                long startTime)

Doğru ölçüm için ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) ile birlikte testin ne zaman başladığını da belirttiğimiz testStarted(com.android.tradefed.result.TestDescription) yöntemine alternatif .

parametreler
test TestDescription : testi tanımlar

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

test başladı

public void testStarted (TestDescription test)

Tek bir test senaryosunun başlangıcını bildirir. Daha eski arayüz, mümkün olduğunda testStarted(com.android.tradefed.result.TestDescription) kullanmalıdır.

parametreler
test TestDescription : testi tanımlar