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 etkinlikleri eşleştirip kaydeden günlük kaydedici. Ana makine tarafındaki ve cihaz tarafındaki günlük, kolayca aranabilmesi için tam olarak eşleşir.

Özet

Herkese açık oluşturucular

PrettyTestEventLogger( devices, boolean methodLevelLogging)

Herkese açık yöntemler

void testEnded(TestDescription test, testMetrics)

Tek bir test senaryosunun yürütülmesinin sonunu bildirir.

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 testRunEnded(long elapsedTimeMillis, runMetrics)

Test çalıştırmasının sonunu bildirir.

void testRunStarted(String runName, int testCount)

Bir test çalıştırmasının başlangıcını bildirir.

void testStarted(TestDescription test)

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

Herkese açık oluşturucular

PrettyTestEventLogger

public PrettyTestEventLogger ( devices, 
                boolean methodLevelLogging)

Parametreler
devices

methodLevelLogging boolean

Herkese açık yöntemler

testEnded

public void testEnded (TestDescription test, 
                 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 durumu yürütülürken yayınlanmış olabilecek tüm anahtar/değer metriklerini de döndürür.

Parametreler
test TestDescription: Testi tanımlar.

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 arızayı ve bağlamını açıklayın.

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: Hatayla sonuçlanan yığın izleme

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Test çalıştırmasının sonunu bildirir.

Parametreler
elapsedTimeMillis long: Cihazın bildirdiği geçen süre (milisaniye cinsinden)

runMetrics : Test çalıştırmasının sonunda bildirilen anahtar/değer çiftleri

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Bir test çalıştırmasının başlangıcını bildirir.

Parametreler
runName String: Test çalıştırmasının adı

testCount int: Test çalıştırmasındaki toplam test sayısı

testStarted

public void testStarted (TestDescription test)

Tek bir test senaryosunun 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.