TextResultReporter

public class TextResultReporter
extends InvocationToJUnitResultForwarder implements ITestInvocationListener, ILogSaverListener

java.lang.Object
com.android.tradefed.result.InvocationToJUnitResultForwarder
com.android.tradefed.result.TextResultReporter


כתב תוצאות בדיקה המעביר תוצאות למדפסת תוצאות טקסט JUnit.

סיכום

בנאים ציבוריים

TextResultReporter ()

יוצר TextResultReporter .

שיטות ציבוריות

void testAssumptionFailure (TestDescription testId, String trace)
void testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics)

עוקף את ההורה כדי להדפיס במפורש מדדי בדיקה.

void testFailed (TestDescription testId, String trace)

עוקף את ההורה כדי להדפיס כשלים במפורש.

void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

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

void testRunEnded (long elapsedTime, metrics) testRunEnded (long elapsedTime, metrics)

עוקף את ההורה כדי להדפיס מדדים באופן מפורש.

בנאים ציבוריים

TextResultReporter

public TextResultReporter ()

יוצר TextResultReporter .

שיטות ציבוריות

testAssumption Failure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

פרמטרים
testId TestDescription

trace String

הבדיקה הסתיים

public void testEnded (TestDescription testId, 
                 metrics)

עוקף את ההורה כדי להדפיס במפורש מדדי בדיקה.

פרמטרים
testId TestDescription

metrics

מבחן נכשל

public void testFailed (TestDescription testId, 
                String trace)

עוקף את ההורה כדי להדפיס כשלים במפורש. ה-ResultPrinter מסתמך על כך שהרץ יקרא "הדפס" בסוף ריצת המבחן כדי לעשות זאת.

פרמטרים
testId TestDescription

trace String

testLog

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

פרמטרים
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

פרמטרים
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testRunEnded

public void testRunEnded (long elapsedTime, 
                 metrics)

עוקף את ההורה כדי להדפיס מדדים באופן מפורש.

פרמטרים
elapsedTime long

metrics