MóduloEscucha

public class ModuleListener
extends CollectingTestListener

java.lang.Objeto
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.testtype.suite.ModuleListener


Oyente 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 ()

Devuelve si la última sesión de reintento del oyente ha fallado o no.

void logAssociation (String dataName, LogFile logFile)

void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

Establece si el intento debe informarse como aislado o no.

void setCollectTestsOnly (boolean collectTestsOnly)

Establece si solo estamos recopilando las pruebas o no.

void setMarkTestsSkipped (boolean skip)

Si se marcan 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, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

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, runMetrics) testRunEnded (long elapsedTime, runMetrics)

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

MóduloEscucha

public ModuleListener (ITestInvocationListener listener)

Constructor.

Parámetros
listener ITestInvocationListener

Métodos públicos

ha fallado el último intento

public boolean hasLastAttemptFailed ()

Devuelve si la última sesión de reintento del oyente ha fallado o no.

Devoluciones
boolean

asociación de registros

public void logAssociation (String dataName, 
                LogFile logFile)

Parámetros
dataName String

logFile LogFile

establecer intento de aislamiento

public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

Establece si el intento debe informarse como aislado o no.

Parámetros
isolation CurrentInvocation.IsolationGrade

setCollectTestsOnly

public void setCollectTestsOnly (boolean collectTestsOnly)

Establece si solo estamos recopilando las pruebas o no.

Parámetros
collectTestsOnly boolean

setMarkTestsSkipped

public void setMarkTestsSkipped (boolean skip)

Si se marcan o no todos los casos de prueba omitidos.

Parámetros
skip boolean

pruebaSuposiciónFracaso

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

pruebaSuposiciónFracaso

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 fallida

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parámetros
test TestDescription

failure FailureDescription

prueba fallida

public void testFailed (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

pruebaIgnorado

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

pruebaRegistroGuardado

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

Parámetros
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

pruebaRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parámetros
elapsedTime long

runMetrics

prueba de ejecución fallida

public void testRunFailed (FailureDescription failure)

Parámetros
failure FailureDescription

prueba de ejecución fallida

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

pruebaIniciada

public void testStarted (TestDescription test, 
                long startTime)

Parámetros
test TestDescription

startTime long