SubprocessResultsReporter
public
class
SubprocessResultsReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
Objeto java.lang. | |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Implementa ITestInvocationListener
para que se especifique como result_reporter y se reenvíe desde
el subproceso, los resultados de las pruebas, las ejecuciones de prueba y las invocaciones de prueba.
Resumen
Constructores 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)
Es el asistente para imprimir la clave del evento y, luego, el objeto JSON. |
void
|
setOutputTestLog(boolean outputTestLog)
Establece si debemos o no mostrar la prueba registrada o no. |
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)
|
Constructores públicos
SubprocessResultsReporter
public SubprocessResultsReporter ()
Métodos públicos
cerrar
public void close ()
getSummary
public TestSummary getSummary ()
Muestra | |
---|---|
TestSummary |
invocaciónFinalizada
public void invocationEnded (long elapsedTime)
Parámetros | |
---|---|
elapsedTime |
long |
Error de invocación
public void invocationFailed (FailureDescription failure)
Parámetros | |
---|---|
failure |
FailureDescription |
Error de invocación
public void invocationFailed (Throwable cause)
Parámetros | |
---|---|
cause |
Throwable |
iniciación de invocación
public void invocationStarted (IInvocationContext context)
Parámetros | |
---|---|
context |
IInvocationContext |
Asociación de registro
public void logAssociation (String dataName, LogFile logFile)
Parámetros | |
---|---|
dataName |
String |
logFile |
LogFile |
printEvent
public void printEvent (String key, Object event)
Es el asistente para imprimir la clave del evento y, luego, el objeto JSON.
Parámetros | |
---|---|
key |
String |
event |
Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Establece si debemos o no mostrar la prueba registrada o no.
Parámetros | |
---|---|
outputTestLog |
boolean |
asistenciaGranularResults
public boolean supportGranularResults ()
Muestra | |
---|---|
boolean |
ErrordeAsuncióndeprueba
public void testAssumptionFailure (TestDescription testId, String trace)
Parámetros | |
---|---|
testId |
TestDescription |
trace |
String |
ErrordeAsuncióndeprueba
public void testAssumptionFailure (TestDescription testId, FailureDescription failure)
Parámetros | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
pruebaFinalizada
public void testEnded (TestDescription testId, long endTime,metrics)
Parámetros | |
---|---|
testId |
TestDescription |
endTime |
long |
metrics |
|
pruebaFinalizada
public void testEnded (TestDescription testId,metrics)
Parámetros | |
---|---|
testId |
TestDescription |
metrics |
|
Prueba con errores
public void testFailed (TestDescription testId, FailureDescription failure)
Parámetros | |
---|---|
testId |
TestDescription |
failure |
FailureDescription |
Prueba con errores
public void testFailed (TestDescription testId, String reason)
Parámetros | |
---|---|
testId |
TestDescription |
reason |
String |
pruebaIgnorada
public void testIgnored (TestDescription testId)
Parámetros | |
---|---|
testId |
TestDescription |
Registro de prueba
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Parámetros | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
módulodepruebafinalizado
public void testModuleEnded ()
MódulodepruebaIniciado
public void testModuleStarted (IInvocationContext moduleContext)
Parámetros | |
---|---|
moduleContext |
IInvocationContext |
pruebaRunfinalizada
public void testRunEnded (long time,runMetrics)
Parámetros | |
---|---|
time |
long |
runMetrics |
|
Error de ejecución de prueba
public void testRunFailed (FailureDescription failure)
Parámetros | |
---|---|
failure |
FailureDescription |
Error de ejecución de prueba
public void testRunFailed (String reason)
Parámetros | |
---|---|
reason |
String |
pruebaRunStarted
public void testRunStarted (String runName, int testCount, int attemptNumber)
Parámetros | |
---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
pruebaRunStarted
public void testRunStarted (String runName, int testCount)
Parámetros | |
---|---|
runName |
String |
testCount |
int |
pruebaRunStarted
public void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
Parámetros | |
---|---|
runName |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
pruebaRundetenida
public void testRunStopped (long arg0)
Parámetros | |
---|---|
arg0 |
long |
Iniciodeprueba
public void testStarted (TestDescription testId, long startTime)
Parámetros | |
---|---|
testId |
TestDescription |
startTime |
long |
Iniciodeprueba
public void testStarted (TestDescription testId)
Parámetros | |
---|---|
testId |
TestDescription |