PrettyTestEventLogger

public class PrettyTestEventLogger
extends Object implements ITestInvocationListener

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


Logger che abbina gli eventi e li registra per facilitare il debug. Il registro sul lato host e sul lato dispositivo corrisponderà rigorosamente per facilitarne la ricerca.

Riepilogo

Costruttori pubblici

PrettyTestEventLogger ( devices) PrettyTestEventLogger ( devices)

Metodi pubblici

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

Riporta la fine dell'esecuzione di un singolo test case.

void testFailed ( TestDescription test, String trace)

Riporta il fallimento di un singolo test case.

void testStarted ( TestDescription test)

Riporta l'inizio di un singolo caso di test.

Costruttori pubblici

PrettyTestEventLogger

public PrettyTestEventLogger ( devices)

Parametri
devices

Metodi pubblici

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Riporta la fine dell'esecuzione di un singolo test case.

Se testFailed(TestDescription, FailureDescription) non è stato richiamato, il test è stato superato. Restituisce inoltre qualsiasi metrica chiave/valore che potrebbe essere stata emessa durante l'esecuzione del test case.

Parametri
test TestDescription : identifica il test

testMetrics : un ERROR(/Map) delle metriche emesse

prova non riuscita

public void testFailed (TestDescription test, 
                String trace)

Riporta il fallimento di un singolo test case.

Verrà chiamato tra testStarted e testEnded.

Parametri
test TestDescription : identifica il test

trace String : traccia dello stack di errore

testAvviato

public void testStarted (TestDescription test)

Riporta l'inizio di un singolo caso di test. L'interfaccia precedente dovrebbe utilizzare testStarted(com.android.tradefed.result.TestDescription) quando possibile.

Parametri
test TestDescription : identifica il test