PrettyTestEventLogger

public class PrettyTestEventLogger
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.testtype.host.PrettyTestEventLogger


Hata ayıklamayı kolaylaştırmak için olayları eşleştiren ve günlüğe kaydeden günlükçü. Ana bilgisayar tarafındaki ve cihaz tarafındaki günlük, aramayı kolaylaştırmak için kesinlikle eşleşecektir.

Özet

Kamu inşaatçıları

PrettyTestEventLogger ( devices) PrettyTestEventLogger ( devices)

Genel yöntemler

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

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

void testFailed ( TestDescription test, String trace)

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

void testStarted ( TestDescription test)

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

Kamu inşaatçıları

PrettyTestEventLogger

public PrettyTestEventLogger ( devices)

Parametreler
devices

Genel yöntemler

testSonlandı

public void testEnded (TestDescription test, 
                 testMetrics)

Bireysel 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 tüm anahtar/değer ölçümlerini de döndürür.

Parametreler
test TestDescription : testi tanımlar

testMetrics : yayılan metriklerin ERROR(/Map)

test başarısız

public void testFailed (TestDescription test, 
                String trace)

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

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

Parametreler
test TestDescription : testi tanımlar

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

testBaşladı

public void testStarted (TestDescription test)

Bireysel bir test senaryosunun 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