LegacySubprocessResultsReporter
public
final
class
LegacySubprocessResultsReporter
extends SubprocessResultsReporter
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.SubprocessResultsReporter | |
| ↳ | com.android.tradefed.result.LegacySubprocessResultsReporter | |
Un'implementazione bloccata del reporter dei risultati del sottoprocesso che dovrebbe rimanere compatibile con le versioni precedenti di TF/CTS (ad es. 8+), nonostante le modifiche alla superclasse.
Questo reporter può essere inserito dinamicamente per attivare la funzionalità di generazione di report sui sottoprocessi nelle vecchie suite di test basate su TF.
Riepilogo
Costruttori pubblici | |
|---|---|
LegacySubprocessResultsReporter()
|
|
Scuderie protette | |
|---|---|
LegacySubprocessResultsReporter(boolean installHandler)
|
|
Metodi pubblici | |
|---|---|
void
|
invocationEnded(long elapsedTime)
Indica che l'invocazione è terminata, correttamente o a 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 uno scenario di test, ma l'opportunità di farlo
nel callback diretto |
void
|
setLogSaver(ILogSaver logSaver)
|
void
|
testAssumptionFailure(TestIdentifier testId, String trace)
|
void
|
testEnded(TestIdentifier testId, long endTime, Map<String, String> metrics)
|
void
|
testEnded(TestIdentifier testId, Map<String, String> 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)
Indica l'inizio dell'esecuzione di un modulo. |
void
|
testRunEnded(long time, Map<String, String> runMetrics)
|
void
|
testRunFailed(String reason)
L'esecuzione del test dei report non è stata completata a causa di un errore irreversibile. |
void
|
testRunStarted(String runName, int testCount)
Segnala l'inizio di un'esecuzione di test. |
void
|
testStarted(TestIdentifier testId)
|
void
|
testStarted(TestIdentifier testId, long startTime)
|
Costruttori pubblici
LegacySubprocessResultsReporter
public LegacySubprocessResultsReporter ()
Scuderie protette
LegacySubprocessResultsReporter
protected LegacySubprocessResultsReporter (boolean installHandler)
| Parametri | |
|---|---|
installHandler |
boolean |
Metodi pubblici
invocationEnded
public void invocationEnded (long elapsedTime)
Indica che l'invocazione è terminata, correttamente o a causa di una condizione di errore.
Verrà chiamato automaticamente dal framework TradeFederation.
| Parametri | |
|---|---|
elapsedTime |
long: il tempo trascorso dell'invocazione in ms |
invocationFailed
public void invocationFailed (Throwable cause)
Segnala una chiamata incompleta a causa di una condizione di errore.
Verrà chiamato automaticamente dal framework TradeFederation.
| Parametri | |
|---|---|
cause |
Throwable: la causa Throwable dell'errore |
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 uno scenario di test, ma l'opportunità di farlo
nel callback diretto testLogSaved(String,LogDataType,InputStreamSource,LogFile)
non è possibile. Pertanto, questo callback consente di fornire un'associazione forte in modo esplicito.
| Parametri | |
|---|---|
dataName |
String: il nome dei dati |
logFile |
LogFile: il LogFile registrato in precedenza e che deve essere associato allo scenario di test. |
testAssumptionFailure
public void testAssumptionFailure (TestIdentifier testId, String trace)
| Parametri | |
|---|---|
testId |
TestIdentifier |
trace |
String |
testEnded
public void testEnded (TestIdentifier testId, long endTime, Map<String, String> metrics)
| Parametri | |
|---|---|
testId |
TestIdentifier |
endTime |
long |
metrics |
Map |
testEnded
public void testEnded (TestIdentifier testId, Map<String, String> metrics)
| Parametri | |
|---|---|
testId |
TestIdentifier |
metrics |
Map |
testFailed
public void testFailed (TestIdentifier testId, String reason)
| Parametri | |
|---|---|
testId |
TestIdentifier |
reason |
String |
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)
Indica 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: runner basati su suite.
| Parametri | |
|---|---|
moduleContext |
IInvocationContext: il IInvocationContext del modulo. |
testRunEnded
public void testRunEnded (long time,
Map<String, String> runMetrics)| Parametri | |
|---|---|
time |
long |
runMetrics |
Map |
testRunFailed
public void testRunFailed (String reason)
L'esecuzione del test dei report 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 test.
| Parametri | |
|---|---|
runName |
String: il nome dell'esecuzione di test |
testCount |
int: numero totale di test nell'esecuzione del test |
testStarted
public void testStarted (TestIdentifier testId, long startTime)
| Parametri | |
|---|---|
testId |
TestIdentifier |
startTime |
long |