LegacySubprocessResultsReporter
public final class LegacySubprocessResultsReporter
extends SubprocessResultsReporter
Un'implementazione bloccata 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 iniettato dinamicamente per abilitare la capacità di reporting dei sottoprocessi nelle vecchie suite di test basate su TF.
Riepilogo
Metodi pubblici |
---|
void | invocationEnded (long elapsedTime) Segnala che l'invocazione è terminata, con esito positivo oa causa di una 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, il log deve essere fortemente associato a un test case, ma l'opportunità di farlo sul diretto testLogSaved(String, com.android.tradefed.result.LogDataType, com.android.tradefed.result.InputStreamSource, com.android.tradefed.result.LogFile) non è possibile richiamare. |
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 è stata 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
invocazioneFine
public void invocationEnded (long elapsedTime)
Segnala che l'invocazione è terminata, con esito positivo oa causa di una condizione di errore.
Verrà automaticamente chiamato dal framework TradeFederation.
Parametri |
---|
elapsedTime | long : il tempo trascorso dall'invocazione in ms |
invocazione non riuscita
public void invocationFailed (Throwable cause)
Segnala una chiamata incompleta a causa di una condizione di errore.
Verrà automaticamente chiamato dal framework TradeFederation.
Parametri |
---|
cause | Throwable : la causa Throwable del fallimento |
invocationStarted
public void invocationStarted (IBuildInfo buildInfo)
Parametri |
---|
buildInfo | IBuildInfo |
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 | |
test non riuscito
public void testFailed (TestIdentifier testId,
String reason)
Parametri |
---|
testId | TestIdentifier |
reason | String |
testIgnorato
public void testIgnored (TestIdentifier testId)
Parametri |
---|
testId | TestIdentifier |
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 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.
testRunEnded
public void testRunEnded (long time,
runMetrics)
Segnala la fine dell'esecuzione del test. FIXME: Non possiamo avere due interfacce Map<> di tipo diverso, quindi dobbiamo usare HashMap qui.
Parametri |
---|
time | long : il dispositivo ha riportato il tempo trascorso, in millisecondi |
runMetrics | : coppie chiave-valore segnalate al termine di un'esecuzione di test con Metric . |
testRunFailed
public void testRunFailed (String reason)
L'esecuzione del test dei rapporti non è stata 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 in esecuzione |
testIniziato
public void testStarted (TestIdentifier testId)
Parametri |
---|
testId | TestIdentifier |
testIniziato
public void testStarted (TestIdentifier testId,
long startTime)
Parametri |
---|
testId | TestIdentifier |
startTime | long |