SubprocessResultsReporter
public
class
SubprocessResultsReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
java.lang.Object | |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Implementa ITestInvocationListener
a ser especificado como um result_reporter e encaminhado de
o subprocesso, os resultados de testes, execuções de teste, invocações de teste.
Resumo
Construtores públicos | |
---|---|
SubprocessResultsReporter()
|
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 de evento e o objeto json. |
void
|
setOutputTestLog(boolean outputTestLog)
Define se devemos ou não gerar o teste registrado. |
boolean
|
supportGranularResults()
|
void
|
testAssumptionFailure(TestDescription testId, String trace)
|
void
|
testAssumptionFailure(TestDescription testId, FailureDescription failure)
|
void
|
testEnded(TestDescription testId, long endTime,
|
void
|
testEnded(TestDescription testId,
|
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,
|
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 ()
getResumo
public TestSummary getSummary ()
Retorna | |
---|---|
TestSummary |
invocaçãoFinalizada
public void invocationEnded (long elapsedTime)
Parâmetros | |
---|---|
elapsedTime |
long |
InvocationFalha
public void invocationFailed (FailureDescription failure)
Parâmetros | |
---|---|
failure |
FailureDescription |
InvocationFalha
public void invocationFailed (Throwable cause)
Parâmetros | |
---|---|
cause |
Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
Parâmetros | |
---|---|
context |
IInvocationContext |
associação de registro
public void logAssociation (String dataName, LogFile logFile)
Parâmetros | |
---|---|
dataName |
String |
logFile |
LogFile |
printEvent
public void printEvent (String key, Object event)
Auxiliar para imprimir a chave de evento e 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.
Parâmetros | |
---|---|
outputTestLog |
boolean |
supportGranularResults
public boolean supportGranularResults ()
Retorna | |
---|---|
boolean |
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId, String trace)
Parâmetros | |
---|---|
testId |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId, FailureDescription failure)
Parâmetros | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription testId, long endTime,metrics)
Parâmetros | |
---|---|
testId |
TestDescription |
endTime |
long |
metrics |
|
testEnded
public void testEnded (TestDescription testId,metrics)
Parâmetros | |
---|---|
testId |
TestDescription |
metrics |
|
testFailed
public void testFailed (TestDescription testId, FailureDescription failure)
Parâmetros | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription testId, String reason)
Parâmetros | |
---|---|
testId |
TestDescription |
reason |
String |
testIgnorado
public void testIgnored (TestDescription testId)
Parâmetros | |
---|---|
testId |
TestDescription |
testLog
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)
Parâmetros | |
---|---|
reason |
String |
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 |
testRunSStop
public void testRunStopped (long arg0)
Parâmetros | |
---|---|
arg0 |
long |
testStarted
public void testStarted (TestDescription testId, long startTime)
Parâmetros | |
---|---|
testId |
TestDescription |
startTime |
long |
testStarted
public void testStarted (TestDescription testId)
Parâmetros | |
---|---|
testId |
TestDescription |