Google is committed to advancing racial equity for Black communities. See how.
Se usó la API de Cloud Translation para traducir esta página.
Switch to English

ResultForwarder

public class ResultForwarder
extends Object implements ITestInvocationListener

java.lang.Object
com.android.tradefed.result.ResultForwarder


Un ITestInvocationListener que reenvía los resultados de la invocación a una lista de otros oyentes.

Resumen

Constructores públicos

ResultForwarder ( listeners) ResultForwarder ( listeners)

Cree un ResultForwarder .

ResultForwarder (ITestInvocationListener... listeners)

Constructor de arg de variable alternativa para ResultForwarder .

Constructores protegidos

ResultForwarder ()

Cree un ResultForwarder con configuración de escucha diferida.

Métodos públicos

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

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 testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

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 elapsedTime)

void testStarted (TestDescription test, long startTime)

void testStarted (TestDescription test)

Métodos protegidos

getListeners ()

Obtenga la lista de oyentes.

void setListeners ( listeners) setListeners ( listeners)

Establecer los oyentes después de la construcción.

void setListeners (ITestInvocationListener... listeners)

Establecer los oyentes después de la construcción.

Constructores públicos

ResultForwarder

public ResultForwarder ( listeners)

Cree un ResultForwarder .

Parámetros
listeners : los ITestInvocationListener reales para enviar los resultados a

ResultForwarder

public ResultForwarder (ITestInvocationListener... listeners)

Constructor de arg de variable alternativa para ResultForwarder .

Parámetros
listeners ITestInvocationListener : el verdadero ITestInvocationListener s para enviar los resultados a

Constructores protegidos

ResultForwarder

protected ResultForwarder ()

Cree un ResultForwarder con configuración de escucha diferida. Destinado solo para uso de subclases.

Métodos públicos

getSummary

public TestSummary getSummary ()

Devoluciones
TestSummary

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

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parámetros
test TestDescription

failure FailureDescription

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Parámetros
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parámetros
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parámetros
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Parámetros
test 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 elapsedTime, 
                 runMetrics)

Parámetros
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parámetros
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parámetros
errorMessage 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

testRunStopped

public void testRunStopped (long elapsedTime)

Parámetros
elapsedTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Parámetros
test TestDescription

startTime long

testStarted

public void testStarted (TestDescription test)

Parámetros
test TestDescription

Métodos protegidos

getListeners

protected  getListeners ()

Obtenga la lista de oyentes. Destinado solo para uso de subclases.

Devoluciones
La lista de ITestInvocationListener s.

setListeners

protected void setListeners ( listeners)

Establecer los oyentes después de la construcción. Destinado solo para su uso por subclases.

Parámetros
listeners : los ITestInvocationListener reales para enviar los resultados a

setListeners

protected void setListeners (ITestInvocationListener... listeners)

Establecer los oyentes después de la construcción. Destinado solo para su uso por subclases.

Parámetros
listeners ITestInvocationListener : el verdadero ITestInvocationListener s para enviar los resultados a