ConsoleResultReporter

public class ConsoleResultReporter
extends TestResultListener implements ILogSaverListener, ITestInvocationListener

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


مراسل النتيجة لطباعة نتائج الاختبار إلى وحدة التحكم.

طباعة كل اختبار، وكل حالة اختبار، ومقاييس الاختبار، وسجلات الاختبار، ومواقع ملفات الاختبار.

ملخص

المقاولين العامة

ConsoleResultReporter ()

الأساليب العامة

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)

المقاولين العامة

ConsoleResultReporter

public ConsoleResultReporter ()

الأساليب العامة

انتهت الدعوة

public void invocationEnded (long elapsedTime)

حدود
elapsedTime long

invocationStarted

public void invocationStarted (IInvocationContext context)

حدود
context IInvocationContext

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

حدود
dataName String

logFile LogFile

testLogSaved

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

حدود
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

نتيجة الاختبار

public void testResult (TestDescription test, 
                TestResult result)

حدود
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

حدود
elapsedTimeMillis long

metrics

فشل تشغيل الاختبار

public void testRunFailed (FailureDescription failure)

حدود
failure FailureDescription

فشل تشغيل الاختبار

public void testRunFailed (String errorMessage)

حدود
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

حدود
runName String

testCount int