LegacySubprocessResultsReporter

public final class LegacySubprocessResultsReporter
extends SubprocessResultsReporter

java.lang.Object
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 funzionalità 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 l'invocazione è terminata, con successo o a causa di qualche condizione di errore.

void invocationFailed (Throwable cause)

Segnala un'invocazione incompleta a causa di qualche condizione di errore.

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

In alcuni casi, il log deve essere fortemente associato a un test case, ma l'opportunità di farlo sul 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 dell'esecuzione di un modulo.

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

Segnala la fine dell'esecuzione del test.

void testRunFailed (String reason)

Impossibile completare l'esecuzione del test dei report 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

invocationEnded

public void invocationEnded (long elapsedTime)

Segnala che l'invocazione è terminata, con successo o a causa di qualche condizione di errore.

Verrà chiamato automaticamente dal framework TradeFederation.

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

invocazioneFailed

public void invocationFailed (Throwable cause)

Segnala un'invocazione incompleta a causa di qualche condizione di errore.

Verrà chiamato automaticamente dal framework TradeFederation.

Parametri
cause Throwable : la causa Throwable del fallimento

invocationStarted

public void invocationStarted (IBuildInfo buildInfo)

Parametri
buildInfo IBuildInfo

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

In alcuni casi, il log deve essere fortemente associato a un test case, ma l'opportunità di farlo sul 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 che dovrebbe essere associato al test case.

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Parametri
logSaver ILogSaver

testAssunzioneFailure

public void testAssumptionFailure (TestIdentifier testId, 
                String trace)

Parametri
testId TestIdentifier

trace String

testEnded

public void testEnded (TestIdentifier testId, 
                 metrics)

Parametri
testId TestIdentifier

metrics

testEnded

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

Parametri
testId TestIdentifier

endTime long

metrics

prova non riuscita

public void testFailed (TestIdentifier testId, 
                String reason)

Parametri
testId TestIdentifier

reason String

testIgnorato

public void testIgnored (TestIdentifier testId)

Parametri
testId TestIdentifier

testLogSaved

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.

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Segnala l'inizio dell'esecuzione di un modulo. 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 : l' 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 : il dispositivo ha riportato il tempo trascorso, in millisecondi

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

testRunFailed

public void testRunFailed (String reason)

Impossibile completare l'esecuzione del test dei report 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