LegacySubprocessResultsReporter

public final class LegacySubprocessResultsReporter
extends SubprocessResultsReporter

java.lang.Oggetto
com.android.tradefed.result.SubprocessResultsReporter
com.android.tradefed.result.LegacySubprocessResultsReporter


Un'implementazione congelata del reporter dei risultati del sottoprocesso che dovrebbe rimanere compatibile con le versioni precedenti di TF/CTS (ad esempio 8+), nonostante i cambiamenti nella sua superclasse.

Questo reporter può essere inserito dinamicamente per abilitare la capacità di reporting dei sottoprocessi nelle vecchie suite di test basate su TF.

Riepilogo

Costruttori pubblici

LegacySubprocessResultsReporter ()

Costruttori protetti

LegacySubprocessResultsReporter (boolean installHandler)

Metodi pubblici

void invocationEnded (long elapsedTime)

Segnala che la chiamata è stata terminata, con successo oa causa di qualche condizione di errore.

void invocationFailed (Throwable cause)

Segnala una chiamata incompleta a causa di una condizione di errore.

void invocationStarted ( IBuildInfo buildInfo)
void logAssociation (String dataName, LogFile logFile)

In alcuni casi, log deve essere fortemente associato a un test case, ma l'opportunità di farlo direttamente testLogSaved(String, com.android.tradefed.result.LogDataType, com.android.tradefed.result.InputStreamSource, com.android.tradefed.result.LogFile) la richiamata non è possibile.

void setLogSaver ( ILogSaver logSaver)
void testAssumptionFailure (TestIdentifier testId, String trace)
void testEnded (TestIdentifier testId, metrics) testEnded (TestIdentifier testId, metrics)
void testEnded (TestIdentifier testId, long endTime, metrics) testEnded (TestIdentifier testId, long endTime, metrics)
void testFailed (TestIdentifier testId, String reason)
void testIgnored (TestIdentifier testId)
void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
void testModuleEnded ()

Segnala la fine dell'esecuzione di un modulo.

void testModuleStarted ( IInvocationContext moduleContext)

Segnala l'inizio di un modulo in esecuzione.

void testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics)

Segnala la fine dell'esecuzione del test.

void testRunFailed (String reason)

L'esecuzione del test dei rapporti non è riuscita a essere completata a causa di un errore irreversibile.

void testRunStarted (String runName, int testCount)

Segnala l'inizio di un'esecuzione di prova.

void testStarted (TestIdentifier testId)
void testStarted (TestIdentifier testId, long startTime)

Costruttori pubblici

LegacySubprocessResultsReporter

public LegacySubprocessResultsReporter ()

Costruttori protetti

LegacySubprocessResultsReporter

protected LegacySubprocessResultsReporter (boolean installHandler)

Parametri
installHandler boolean

Metodi pubblici

invocazioneEnded

public void invocationEnded (long elapsedTime)

Segnala che la chiamata è stata terminata, con successo oa causa di qualche condizione di errore.

Verrà richiamato automaticamente dal framework TradeFederation.

Parametri
elapsedTime long : il tempo trascorso dell'invocazione in ms

invocazione non riuscita

public void invocationFailed (Throwable cause)

Segnala una chiamata incompleta a causa di una condizione di errore.

Verrà richiamato automaticamente dal framework TradeFederation.

Parametri
cause Throwable : la causa Throwable del fallimento

invocazioneAvviato

public void invocationStarted (IBuildInfo buildInfo)

Parametri
buildInfo IBuildInfo

logAssociazione

public void logAssociation (String dataName, 
                LogFile logFile)

In alcuni casi, log deve essere fortemente associato a un test case, ma l'opportunità di farlo direttamente testLogSaved(String, com.android.tradefed.result.LogDataType, com.android.tradefed.result.InputStreamSource, com.android.tradefed.result.LogFile) la richiamata non è possibile. Pertanto, questo callback consente di fornire esplicitamente un'associazione forte.

Parametri
dataName String : il nome dei dati

logFile LogFile : il LogFile che è stato registrato in precedenza e deve essere associato al test case.

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Parametri
logSaver ILogSaver

testAssumptionFailure

public void testAssumptionFailure (TestIdentifier testId, 
                String trace)

Parametri
testId TestIdentifier

trace String

testTerminato

public void testEnded (TestIdentifier testId, 
                 metrics)

Parametri
testId TestIdentifier

metrics

testTerminato

public void testEnded (TestIdentifier testId, 
                long endTime, 
                 metrics)

Parametri
testId TestIdentifier

endTime long

metrics

testFailed

public void testFailed (TestIdentifier testId, 
                String reason)

Parametri
testId TestIdentifier

reason String

testIgnorato

public void testIgnored (TestIdentifier testId)

Parametri
testId TestIdentifier

testLogSalvato

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

Parametri
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleEnded

public void testModuleEnded ()

Segnala la fine dell'esecuzione di un modulo.

testModuleAvviato

public void testModuleStarted (IInvocationContext moduleContext)

Segnala l'inizio di un modulo in esecuzione. Questo callback è associato a testModuleEnded() ed è facoltativo nella sequenza. Viene utilizzato solo durante una corsa che utilizza moduli: corridori basati su suite.

Parametri
moduleContext IInvocationContext : IInvocationContext del modulo.

testRunEnded

public void testRunEnded (long time, 
                 runMetrics)

Segnala la fine dell'esecuzione del test. FIXME: non possiamo avere due interfacce Map<> con tipo diverso, quindi dobbiamo usare HashMap qui.

Parametri
time long : tempo trascorso segnalato dal dispositivo, in millisecondi

runMetrics : coppie chiave-valore riportate al termine di un'esecuzione di test con Metric .

testRunFailed

public void testRunFailed (String reason)

L'esecuzione del test dei rapporti non è riuscita a essere completata a causa di un errore irreversibile.

Parametri
reason String : String che descrive il motivo dell'errore di esecuzione.

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Segnala l'inizio di un'esecuzione di prova.

Parametri
runName String : il nome dell'esecuzione del test

testCount int : numero totale di test nell'esecuzione del test

testAvviato

public void testStarted (TestIdentifier testId)

Parametri
testId TestIdentifier

testAvviato

public void testStarted (TestIdentifier testId, 
                long startTime)

Parametri
testId TestIdentifier

startTime long