FormattedGeneratorReporter

public abstract class FormattedGeneratorReporter
extends SuiteResultReporter implements IConfigurationReceiver

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.result.suite.SuiteResultReporter
com.android.tradefed.result.suite.FormattedGeneratorReporter


כתב המאפשר להפיק דוחות בפורמט מסוים. TODO: תקן קובץ מתועד

סיכום

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

FormattedGeneratorReporter ()

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

abstract IFormatterGenerator createFormatter ()

מחזירה מופע חדש של IFormatterGenerator לשימוש.

abstract void finalizeResults ( IFormatterGenerator generator, SuiteResultHolder resultHolder)

שלב שמטפל בשימוש ב- IFormatterGenerator וב- SuiteResultHolder על מנת ליצור כמה תוצאות מעוצבות.

final IConfiguration getConfiguration ()
final void invocationEnded (long elapsedTime)

מדווח שהפנייה הסתיימה, בין אם בהצלחה ובין אם עקב מצב שגיאה כלשהו.

void invocationFailed ( FailureDescription failure)
void invocationFailed (Throwable cause)

מדווח על הזמנה לא מלאה עקב מצב שגיאה כלשהו.

final void setConfiguration ( IConfiguration configuration)

מזריק את IConfiguration בשימוש.

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

FormattedGeneratorReporter

public FormattedGeneratorReporter ()

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

createFormatter

public abstract IFormatterGenerator createFormatter ()

מחזירה מופע חדש של IFormatterGenerator לשימוש.

החזרות
IFormatterGenerator

לסיים את התוצאות

public abstract void finalizeResults (IFormatterGenerator generator, 
                SuiteResultHolder resultHolder)

שלב שמטפל בשימוש ב- IFormatterGenerator וב- SuiteResultHolder על מנת ליצור כמה תוצאות מעוצבות.

getConfiguration

public final IConfiguration getConfiguration ()

החזרות
IConfiguration

הקריאה הסתיימה

public final void invocationEnded (long elapsedTime)

מדווח שהפנייה הסתיימה, בין אם בהצלחה ובין אם עקב מצב שגיאה כלשהו.

ייקרא אוטומטית על ידי מסגרת TradeFederation.

פרמטרים
elapsedTime long : הזמן שחלף של הקריאה ב-ms

הפניה נכשלה

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

הפניה נכשלה

public void invocationFailed (Throwable cause)

מדווח על הזמנה לא מלאה עקב מצב שגיאה כלשהו.

ייקרא אוטומטית על ידי מסגרת TradeFederation.

פרמטרים
cause Throwable : הגורם Throwable לכשל

setConfiguration

public final void setConfiguration (IConfiguration configuration)

מזריק את IConfiguration בשימוש.

פרמטרים
configuration IConfiguration