ModuleListener
public
class
ModuleListener
extends CollectingTestListener
Objeto java.lang. | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.testtype.suite.ModuleListener |
Objeto de escucha adjunto a cada IRemoteTest
de cada módulo para recopilar la lista de
resultados.
Resumen
Constructores públicos | |
---|---|
ModuleListener(ITestInvocationListener listener)
Constructor. |
Métodos públicos | |
---|---|
boolean
|
hasLastAttemptFailed()
Muestra si la última sesión de reintento del objeto de escucha falló o no. |
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
setAttemptIsolation(CurrentInvocation.IsolationGrade isolation)
Establece si el intento se debe informar como aislado o no. |
void
|
setCollectTestsOnly(boolean collectTestsOnly)
Establece si solo se recopilarán las pruebas o no. |
void
|
setMarkTestsSkipped(boolean skip)
Indica si se deben marcar o no todos los casos de prueba omitidos. |
void
|
testAssumptionFailure(TestDescription test, String trace)
|
void
|
testAssumptionFailure(TestDescription test, FailureDescription failure)
|
void
|
testEnded(TestDescription test, long endTime,
|
void
|
testEnded(TestDescription test,
|
void
|
testFailed(TestDescription test, FailureDescription failure)
|
void
|
testFailed(TestDescription test, String trace)
|
void
|
testIgnored(TestDescription test)
|
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testRunEnded(long elapsedTime,
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String errorMessage)
|
void
|
testRunStarted(String name, int numTests, int attemptNumber)
|
void
|
testRunStarted(String name, int numTests, int attemptNumber, long startTime)
|
void
|
testStarted(TestDescription test, long startTime)
|
Constructores públicos
ModuleListener
public ModuleListener (ITestInvocationListener listener)
Constructor.
Parámetros | |
---|---|
listener |
ITestInvocationListener |
Métodos públicos
hasLastAttemptFailed
public boolean hasLastAttemptFailed ()
Muestra si la última sesión de reintento del objeto de escucha falló o no.
Muestra | |
---|---|
boolean |
Asociación de registro
public void logAssociation (String dataName, LogFile logFile)
Parámetros | |
---|---|
dataName |
String |
logFile |
LogFile |
setIntentIsolation
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
Establece si el intento se debe informar como aislado o no.
Parámetros | |
---|---|
isolation |
CurrentInvocation.IsolationGrade |
Solo RecopilarTests
public void setCollectTestsOnly (boolean collectTestsOnly)
Establece si solo se recopilarán las pruebas o no.
Parámetros | |
---|---|
collectTestsOnly |
boolean |
setMarkTestsOmitidas
public void setMarkTestsSkipped (boolean skip)
Indica si se deben marcar o no todos los casos de prueba omitidos.
Parámetros | |
---|---|
skip |
boolean |
ErrordeAsuncióndeprueba
public void testAssumptionFailure (TestDescription test, String trace)
Parámetros | |
---|---|
test |
TestDescription |
trace |
String |
ErrordeAsuncióndeprueba
public void testAssumptionFailure (TestDescription test, FailureDescription failure)
Parámetros | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
pruebaFinalizada
public void testEnded (TestDescription test, long endTime,testMetrics)
Parámetros | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
pruebaFinalizada
public void testEnded (TestDescription test,testMetrics)
Parámetros | |
---|---|
test |
TestDescription |
testMetrics |
|
Prueba con errores
public void testFailed (TestDescription test, FailureDescription failure)
Parámetros | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
Prueba con errores
public void testFailed (TestDescription test, String trace)
Parámetros | |
---|---|
test |
TestDescription |
trace |
String |
pruebaIgnorada
public void testIgnored (TestDescription test)
Parámetros | |
---|---|
test |
TestDescription |
Registro de prueba
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Parámetros | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
Parámetros | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
pruebaRunfinalizada
public void testRunEnded (long elapsedTime,runMetrics)
Parámetros | |
---|---|
elapsedTime |
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 errorMessage)
Parámetros | |
---|---|
errorMessage |
String |
pruebaRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber)
Parámetros | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
pruebaRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber, long startTime)
Parámetros | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
startTime |
long |
Iniciodeprueba
public void testStarted (TestDescription test, long startTime)
Parámetros | |
---|---|
test |
TestDescription |
startTime |
long |