Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
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


Sonuç muhabiri, test sonuçlarını konsola yazdırır.

Her test çalıştırmasını, her test senaryosunu ve test ölçümlerini, test günlüklerini ve test dosyası konumlarını yazdırır.

Özet

Kamu inşaatçılar

ConsoleResultReporter ()

Kamu yöntemleri

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)

Kamu inşaatçılar

ConsoleResultReporter

public ConsoleResultReporter ()

Genel yöntemler

invocationEnded

public void invocationEnded (long elapsedTime)

Parametreler
elapsedTime long

invocationStarted

public void invocationStarted (IInvocationContext context)

Parametreler
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Parametreler
dataName String

logFile LogFile

testLogSaved

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

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

test sonucu

public void testResult (TestDescription test, 
                TestResult result)

Parametreler
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

Parametreler
elapsedTimeMillis long

metrics

testRunFailed

public void testRunFailed (String errorMessage)

Parametreler
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parametreler
runName String

testCount int