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

התראה התחילה

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

testRunFailed

public void testRunFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

פרמטרים
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

פרמטרים
runName String

testCount int