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: fix logged file

סיכום

קונסטרוקטורים גלויים לכולם

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

finalizeResults

public abstract void finalizeResults (IFormatterGenerator generator, 
                SuiteResultHolder resultHolder)

שלב שמטפל בשימוש ב-IFormatterGenerator וב-SuiteResultHolder כדי ליצור תוצאות מסוימות בפורמט.

getConfiguration

public final IConfiguration getConfiguration ()

החזרות
IConfiguration

invocationEnded

public final void invocationEnded (long elapsedTime)

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

הקריאה תתבצע באופן אוטומטי על ידי מסגרת TradeFederation.

פרמטרים
elapsedTime long: הזמן שחלף מהקריאה, במילישניות

invocationFailed

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

דיווח על קריאה חלקית עקב תנאי שגיאה כלשהו.

הקריאה תתבצע באופן אוטומטי על ידי מסגרת TradeFederation.

פרמטרים
cause Throwable: Throwable הסיבה לכישלון

setConfiguration

public final void setConfiguration (IConfiguration configuration)

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

פרמטרים
configuration IConfiguration