FiltrelenmişSonuçİletici
public class FilteredResultForwarder
extends ResultForwarder
java.lang.Nesne | ||
↳ | com.android.tradefed.result.ResultForwarder | |
↳ | com.android.tradefed.result.FilteredResultForwarder |
Yalnızca izin verilen bir TestDescription
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 üstlendiğini işaretlediğinde çağrılır. |
void | testAssumptionFailure ( TestDescription test, String trace) Bir atomik test, yanlış olan bir koşulu üstlendiğini 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 belirleyebileceğimiz |
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öntemine org.junit.Ignore ile açıklama eklendiğinden, bir test çalıştırılmayacaksa çağrılır. |
void | testStarted ( TestDescription test, long startTime) Testin ne zaman başladığını da belirttiğimiz |
void | testStarted ( TestDescription test) Bireysel bir test vakasının başlangıcını bildirir. |
Kamu inşaatçıları
FiltrelenmişSonuçİletici
public FilteredResultForwarder (allowedTests, ITestInvocationListener... listeners)
parametreler | |
---|---|
allowedTests | |
listeners | ITestInvocationListener |
Genel yöntemler
testVarsayımBaşarısızlık
public void testAssumptionFailure (TestDescription test, FailureDescription failure)
Bir atomik test, yanlış olan bir koşulu üstlendiğini işaretlediğinde çağrılır.
parametreler | |
---|---|
test | TestDescription : testi tanımlar |
failure | FailureDescription : Arızayı ve bağlamını açıklayan FailureDescription . |
testVarsayımBaşarısızlık
public void testAssumptionFailure (TestDescription test, String trace)
Bir atomik test, yanlış olan bir koşulu üstlendiğini işaretlediğinde çağrılır.
parametreler | |
---|---|
test | TestDescription : testi tanımlar |
trace | String : yığın hatası izi |
testBitti
public void testEnded (TestDescription test,testMetrics)
Tek bir test senaryosunun yürütme sonunu bildirir.
testFailed(TestDescription, FailureDescription)
çağrılmamışsa, bu test başarılı olmuştur. Ayrıca, test senaryosunun yürütülmesi sırasında yayılmış olabilecek tüm anahtar/değer ölçümlerini döndürür.
parametreler | |
---|---|
test | TestDescription : testi tanımlar |
testMetrics | ERROR(/Map) |
testBitti
public void testEnded (TestDescription test, long endTime,testMetrics)
Bitiş zamanını doğrudan belirleyebileceğimiz ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map))
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 | 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ılır.
parametreler | |
---|---|
test | TestDescription : testi tanımlar |
failure | FailureDescription : Arızayı ve bağlamını 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ılır.
parametreler | |
---|---|
test | TestDescription : testi tanımlar |
trace | String : yığın hatası izi |
testYoksayıldı
public void testIgnored (TestDescription test)
Genellikle bir test yöntemine org.junit.Ignore ile açıklama eklendiğinden, bir test çalıştırılmayacaksa çağrılır.
parametreler | |
---|---|
test | TestDescription : testi tanımlar |
testBaşladı
public void testStarted (TestDescription test, long startTime)
Testin ne zaman başladığını da belirttiğimiz testStarted(com.android.tradefed.result.TestDescription)
alternatifi, doğru ölçüm için ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map))
ile birlikte .
parametreler | |
---|---|
test | TestDescription : testi tanımlar |
startTime | long : System.currentTimeMillis() aracılığıyla ölçülen testin başladığı zaman |
testBaşladı
public void testStarted (TestDescription test)
Bireysel bir test vakasının başlangıcını bildirir. Eski arayüz, mümkün olduğunda testStarted(com.android.tradefed.result.TestDescription)
kullanmalıdır.
parametreler | |
---|---|
test | TestDescription : testi tanımlar |