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

ConsoleResultReporter

public class ConsoleResultReporter
extends TestResultListener implements ILogSaverListener, ITestInvocationListener

java.lang.Object
com.android.tradefed.result.TestResultListener
com.android.tradefed.result.ConsoleResultReporter


Reporter de resultados para imprimir los resultados de la prueba en la consola.

Imprime cada ejecución de prueba, cada caso de prueba y métricas de prueba, registros de prueba y ubicaciones de archivos de prueba.

Resumen

Constructores públicos

ConsoleResultReporter ()

Métodos públicos

void invocationEnded (long elapsedTime)

void invocationStarted (IInvocationContext context)
void logAssociation (String dataName, LogFile logFile)

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

void testResult (TestDescription test, TestResult result)
void testRunEnded (long elapsedTimeMillis, metrics) testRunEnded (long elapsedTimeMillis, metrics)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount)

Constructores públicos

ConsoleResultReporter

public ConsoleResultReporter ()

Métodos públicos

invocationEnded

public void invocationEnded (long elapsedTime)

Parámetros
elapsedTime long

invocationStarted

public void invocationStarted (IInvocationContext context)

Parámetros
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Parámetros
dataName String

logFile LogFile

testLogSaved

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

Parámetros
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

resultado de la prueba

public void testResult (TestDescription test, 
                TestResult result)

Parámetros
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

Parámetros
elapsedTimeMillis long

metrics

testRunFailed

public void testRunFailed (String errorMessage)

Parámetros
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parámetros
runName String

testCount int