SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Sottoclassi dirette conosciute 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. |
|
Implementa ITestInvocationListener
da specificare come result_reporter e inoltrare dal sottoprocesso i risultati di test, esecuzioni di test e invocazioni di test.
Riepilogo
Metodi pubblici |
---|
void | close () |
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | logAssociation (String dataName, LogFile logFile) |
void | printEvent (String key, Object event) Helper per stampare la chiave dell'evento e quindi l'oggetto json. |
void | setOutputTestLog (boolean outputTestLog) Imposta se dobbiamo o meno emettere il test registrato o meno. |
boolean | supportGranularResults () |
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
void | testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) |
void | testFailed (TestDescription testId, FailureDescription failure) |
void | testFailed (TestDescription testId, String reason) |
void | testIgnored (TestDescription testId) |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String reason) |
void | testRunStarted (String runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long arg0) |
void | testStarted (TestDescription testId, long startTime) |
void | testStarted (TestDescription testId) |
Costruttori pubblici
SubprocessResultsReporter
public SubprocessResultsReporter ()
Metodi pubblici
vicino
public void close ()
getSummary
public TestSummary getSummary ()
invocationEnded
public void invocationEnded (long elapsedTime)
Parametri |
---|
elapsedTime | long |
invocazioneFailed
public void invocationFailed (FailureDescription failure)
Parametri |
---|
failure | FailureDescription |
invocazioneFailed
public void invocationFailed (Throwable cause)
Parametri |
---|
cause | Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
Parametri |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
Parametri |
---|
dataName | String |
logFile | LogFile |
printEvent
public void printEvent (String key,
Object event)
Helper per stampare la chiave dell'evento e quindi l'oggetto json.
Parametri |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Imposta se dobbiamo o meno emettere il test registrato o meno.
Parametri |
---|
outputTestLog | boolean |
supportGranularResults
public boolean supportGranularResults ()
testAssunzioneFallimento
public void testAssumptionFailure (TestDescription testId,
String trace)
Parametri |
---|
testId | TestDescription |
trace | String |
testAssunzioneFallimento
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
Parametri |
---|
testId | TestDescription |
failure | FailureDescription |
testEnded
public void testEnded (TestDescription testId,
long endTime,
metrics)
Parametri |
---|
testId | TestDescription |
endTime | long |
metrics | |
testEnded
public void testEnded (TestDescription testId,
metrics)
Parametri |
---|
testId | TestDescription |
metrics | |
prova non riuscita
public void testFailed (TestDescription testId,
FailureDescription failure)
Parametri |
---|
testId | TestDescription |
failure | FailureDescription |
prova non riuscita
public void testFailed (TestDescription testId,
String reason)
Parametri |
---|
testId | TestDescription |
reason | String |
testIgnorato
public void testIgnored (TestDescription testId)
Parametri |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Parametri |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Parametri |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long time,
runMetrics)
Parametri |
---|
time | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
Parametri |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String reason)
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Parametri |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
Parametri |
---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Parametri |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunStopped
public void testRunStopped (long arg0)
testAvviato
public void testStarted (TestDescription testId,
long startTime)
Parametri |
---|
testId | TestDescription |
startTime | long |
testAvviato
public void testStarted (TestDescription testId)
Parametri |
---|
testId | TestDescription |