PrettyTestEventLogger
public class PrettyTestEventLogger
extends Object
implements ITestInvocationListener
java.lang.Oggetto | |
↳ | com.android.tradefed.testtype.host.PrettyTestEventLogger |
Logger che abbina gli eventi e li registra per semplificare 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) Segnala il fallimento di un singolo test case. |
void | testStarted ( TestDescription test) Segnala l'inizio di un singolo test case. |
Costruttori pubblici
PrettyTestEventLogger
public PrettyTestEventLogger (devices)
Parametri | |
---|---|
devices |
Metodi pubblici
testTerminato
public void testEnded (TestDescription test,testMetrics)
Riporta la fine dell'esecuzione di un singolo test case.
Se testFailed(TestDescription, FailureDescription)
non è stato richiamato, questo test ha avuto esito positivo. Restituisce anche qualsiasi metrica chiave/valore che potrebbe essere stata emessa durante l'esecuzione del caso di test.
Parametri | |
---|---|
test | TestDescription : identifica il test |
testMetrics | ERROR(/Map) delle metriche emesse |
testFailed
public void testFailed (TestDescription test, String trace)
Segnala il fallimento di un singolo test case.
Verrà chiamato tra testStarted e testEnded.
Parametri | |
---|---|
test | TestDescription : identifica il test |
trace | String : traccia dello stack dell'errore |
testAvviato
public void testStarted (TestDescription test)
Segnala l'inizio di un singolo test case. Interfaccia precedente, dovrebbe usare testStarted(com.android.tradefed.result.TestDescription)
quando possibile.
Parametri | |
---|---|
test | TestDescription : identifica il test |