SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
| java.lang.Object |
| ↳ | com.android.tradefed.result.SubprocessResultsReporter |
Subclasses diretas conhecidas| LegacySubprocessResultsReporter | Uma implementação congelada do repórter de resultados do subprocesso que deve permanecer compatível com versões anteriores do TF/CTS (por exemplo, 8+), apesar das mudanças em sua superclasse. |
|
Implementa ITestInvocationListener para ser especificado como result_reporter e encaminha do subprocesso os resultados de testes, execuções de teste e invocações de teste.
Resumo
Métodos públicos |
|---|
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) Auxiliar para imprimir a chave do evento e depois o objeto json. |
void | setOutputTestLog (boolean outputTestLog) Define se devemos ou não gerar o teste registrado ou não. |
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) |
Construtores públicos
SubprocessResultsReporter
public SubprocessResultsReporter ()
Métodos públicos
fechar
public void close ()
obter Resumo
public TestSummary getSummary ()
invocaçãoEnded
public void invocationEnded (long elapsedTime)
| Parâmetros |
|---|
elapsedTime | long |
invocaçãoFailed
public void invocationFailed (FailureDescription failure)
| Parâmetros |
|---|
failure | FailureDescription |
invocaçãoFailed
public void invocationFailed (Throwable cause)
| Parâmetros |
|---|
cause | Throwable |
invocaçãoiniciada
public void invocationStarted (IInvocationContext context)
| Parâmetros |
|---|
context | IInvocationContext |
logAssociação
public void logAssociation (String dataName,
LogFile logFile)| Parâmetros |
|---|
dataName | String |
logFile | LogFile |
imprimirEvento
public void printEvent (String key,
Object event) Auxiliar para imprimir a chave do evento e depois o objeto json.
| Parâmetros |
|---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Define se devemos ou não gerar o teste registrado ou não.
| Parâmetros |
|---|
outputTestLog | boolean |
suporteGranularResults
public boolean supportGranularResults ()
testeAssunçãoFalha
public void testAssumptionFailure (TestDescription testId,
String trace)| Parâmetros |
|---|
testId | TestDescription |
trace | String |
testeAssunçãoFalha
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)| Parâmetros |
|---|
testId | TestDescription |
failure | FailureDescription |
teste finalizado
public void testEnded (TestDescription testId,
long endTime,
metrics)| Parâmetros |
|---|
testId | TestDescription |
endTime | long |
metrics | |
teste finalizado
public void testEnded (TestDescription testId,
metrics)| Parâmetros |
|---|
testId | TestDescription |
metrics | |
teste falhou
public void testFailed (TestDescription testId,
FailureDescription failure)| Parâmetros |
|---|
testId | TestDescription |
failure | FailureDescription |
teste falhou
public void testFailed (TestDescription testId,
String reason)| Parâmetros |
|---|
testId | TestDescription |
reason | String |
testeIgnorado
public void testIgnored (TestDescription testId)
| Parâmetros |
|---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)| Parâmetros |
|---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
| Parâmetros |
|---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long time,
runMetrics)| Parâmetros |
|---|
time | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
| Parâmetros |
|---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String reason)
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)| Parâmetros |
|---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)| Parâmetros |
|---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)| Parâmetros |
|---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunStopped
public void testRunStopped (long arg0)
teste iniciado
public void testStarted (TestDescription testId,
long startTime)| Parâmetros |
|---|
testId | TestDescription |
startTime | long |
teste iniciado
public void testStarted (TestDescription testId)
| Parâmetros |
|---|
testId | TestDescription |