ConsoleResultReporter

public class ConsoleResultReporter
extends TestResultListener implements ILogSaverListener, ITestInvocationListener

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


Reporter risultati per stampare i risultati del test sulla console.

Stampa ogni esecuzione di test, ogni caso di test e metriche di test, registri di test e posizioni dei file di test.

Riepilogo

Costruttori pubblici

ConsoleResultReporter ()

Metodi pubblici

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 (FailureDescription failure)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount)

Costruttori pubblici

ConsoleResultReporter

public ConsoleResultReporter ()

Metodi pubblici

invocazione terminata

public void invocationEnded (long elapsedTime)

Parametri
elapsedTime long

invocazione avviata

public void invocationStarted (IInvocationContext context)

Parametri
context IInvocationContext

logAssociazione

public void logAssociation (String dataName, 
                LogFile logFile)

Parametri
dataName String

logFile LogFile

testLogSaved

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

Parametri
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

Risultato del test

public void testResult (TestDescription test, 
                TestResult result)

Parametri
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

Parametri
elapsedTimeMillis long

metrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parametri
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parametri
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parametri
runName String

testCount int