Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.
Se usó la API de Cloud Translation para traducir esta página.
Switch to English

ShardListener

public class ShardListener
extends CollectingTestListener implements ISupportGranularResults

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.invoker.ShardListener


Un ITestInvocationListener que recopila los resultados de un fragmento de invocación (también conocido como una división de invocación para ejecutarse en varios recursos en paralelo) y los reenvía a otro oyente.

Resumen

Constructores públicos

ShardListener (ITestInvocationListener main)

Cree un ShardListener .

Métodos públicos

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void setSupportGranularResults (boolean enableGranularResults)
boolean supportGranularResults ()

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

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

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String failureMessage)

void testRunStarted (String name, int numTests, int attemptNumber, long startTime)

Constructores públicos

ShardListener

public ShardListener (ITestInvocationListener main)

Cree un ShardListener .

Parámetros
main ITestInvocationListener : ITestInvocationListener los resultados deben enviarse. Para evitar colisiones con otros ShardListener , este objeto se sincronizará en main al reenviar resultados. Y los resultados solo se enviarán una vez que se complete el fragmento de invocación.

Métodos públicos

invocationEnded

public void invocationEnded (long elapsedTime)

Parámetros
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Parámetros
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parámetros
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parámetros
context IInvocationContext

setSupportGranularResults

public void setSupportGranularResults (boolean enableGranularResults)

Parámetros
enableGranularResults boolean

supportGranularResults

public boolean supportGranularResults ()

Devoluciones
boolean

testLog

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

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parámetros
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parámetros
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parámetros
failure FailureDescription

testRunFailed

public void testRunFailed (String failureMessage)

Parámetros
failureMessage String

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)

Parámetros
name String

numTests int

attemptNumber int

startTime long