ProtoResultReporter

public abstract class ProtoResultReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
com.android.tradefed.result.proto.ProtoResultReporter


כתב תוצאות בנה פרוטובוף TestRecord עם כל התוצאות בפנים. יש להרחיב אותו כדי לטפל במה לעשות עם הפרוטו הסופי ב- processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) .

סיכום

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

ProtoResultReporter ()

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

final void invocationEnded (long elapsedTime)
void invocationFailed (FailureDescription failure)
void invocationFailed (Throwable cause)
final void invocationStarted (IInvocationContext context)
final void logAssociation (String dataName, LogFile logFile)
void processFinalProto (TestRecordProto.TestRecord finalRecord)

טיפול בפרוטו הסופי עם כל התוצאות.

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

טיפול בפרוטו של רשומת הבדיקה החלקית לאחר התרחשות invocationStarted(com.android.tradefed.invoker.IInvocationContext) .

void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

טיפול בפרוטו הרשומה הסופית של מקרה הבדיקה לאחר שהתרחש ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) .

void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

טיפול בפרוטו של רשומת מקרה הבדיקה החלקית לאחר testStarted(com.android.tradefed.result.TestDescription, long) התרחש.

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

טיפול בפרוטו הרשומה הסופית של המודול לאחר שהתרחש testModuleEnded() .

void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

טיפול בפרוטו החלקי של רשומת המודול לאחר שהתרחש testModuleStarted(com.android.tradefed.invoker.IInvocationContext) .

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

טיפול בפרוטו רשומת הריצה הסופית לאחר שהתרחש ITestLifeCycleReceiver.testRunEnded(long, HashMap) .

void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

טיפול בפרוטו רשומת ריצת הבדיקה החלקית לאחר שהתרחש testRunStarted(String, int) .

boolean supportGranularResults ()
final void testAssumptionFailure (TestDescription test, String trace)
final void testAssumptionFailure (TestDescription test, FailureDescription failure)
final void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)
void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)
final void testFailed (TestDescription test, FailureDescription failure)
final void testFailed (TestDescription test, String trace)
final void testIgnored (TestDescription test)
final void testModuleEnded ()
final void testModuleStarted (IInvocationContext moduleContext)
final void testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics)
final void testRunFailed (FailureDescription failure)
final void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount, int attemptNumber)
final void testRunStarted (String runName, int testCount)
void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
final void testStarted (TestDescription test, long startTime)
final void testStarted (TestDescription test)

שיטות מוגנות

TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

יוצר הפניה צאצא עבור מודול.

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

ProtoResultReporter

public ProtoResultReporter ()

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

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

public final void invocationEnded (long elapsedTime)

פרמטרים
elapsedTime long

הפניה נכשלה

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

הפניה נכשלה

public void invocationFailed (Throwable cause)

פרמטרים
cause Throwable

התראה התחילה

public final void invocationStarted (IInvocationContext context)

פרמטרים
context IInvocationContext

logAssociation

public final void logAssociation (String dataName, 
                LogFile logFile)

פרמטרים
dataName String

logFile LogFile

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

טיפול בפרוטו הסופי עם כל התוצאות.

פרמטרים
finalRecord TestRecordProto.TestRecord : הפרוטו הסופי עם כל תוצאות ההתקשרות.

processStartInvocation

public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, 
                IInvocationContext invocationContext)

טיפול בפרוטו של רשומת הבדיקה החלקית לאחר התרחשות invocationStarted(com.android.tradefed.invoker.IInvocationContext) .

פרמטרים
invocationStartRecord TestRecordProto.TestRecord : הפרוטו החלקי המאוכלס לאחר ה-invocationStart.

invocationContext IInvocationContext : הקריאה IInvocationContext .

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

טיפול בפרוטו הרשומה הסופית של מקרה הבדיקה לאחר שהתרחש ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) .

פרמטרים
testCaseRecord TestRecordProto.TestRecord : הפרוטו הסופי המייצג מקרה בדיקה.

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

טיפול בפרוטו של רשומת מקרה הבדיקה החלקית לאחר testStarted(com.android.tradefed.result.TestDescription, long) התרחש.

פרמטרים
testCaseStartedRecord TestRecordProto.TestRecord : הפרוטו החלקי המייצג את מקרה הבדיקה.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

טיפול בפרוטו הרשומה הסופית של המודול לאחר שהתרחש testModuleEnded() .

פרמטרים
moduleRecord TestRecordProto.TestRecord : הפרוטו הסופי המייצג את המודול.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

טיפול בפרוטו החלקי של רשומת המודול לאחר שהתרחש testModuleStarted(com.android.tradefed.invoker.IInvocationContext) .

פרמטרים
moduleStartRecord TestRecordProto.TestRecord : הפרוטו החלקי המייצג את המודול.

processTestRunEnded

public void processTestRunEnded (TestRecordProto.TestRecord runRecord, 
                boolean moduleInProgress)

טיפול בפרוטו רשומת הריצה הסופית לאחר שהתרחש ITestLifeCycleReceiver.testRunEnded(long, HashMap) .

פרמטרים
runRecord TestRecordProto.TestRecord : פרוטו הסופי המייצג את הריצה.

moduleInProgress boolean : אם מודול נמצא בתהליך או לא.

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

טיפול בפרוטו רשומת ריצת הבדיקה החלקית לאחר שהתרחש testRunStarted(String, int) .

פרמטרים
runStartedRecord TestRecordProto.TestRecord : הפרוטו החלקי המייצג את הריצה.

תומך ב-GranularResults

public boolean supportGranularResults ()

החזרות
boolean

testAssumption Failure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

testAssumption Failure

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

פרמטרים
test TestDescription

failure FailureDescription

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

public final void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

פרמטרים
test TestDescription

endTime long

testMetrics

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

public void testEnded (TestDescription test, 
                 testMetrics)

פרמטרים
test TestDescription

testMetrics

מבחן נכשל

public final void testFailed (TestDescription test, 
                FailureDescription failure)

פרמטרים
test TestDescription

failure FailureDescription

מבחן נכשל

public final void testFailed (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

התעלמו מהבדיקה

public final void testIgnored (TestDescription test)

פרמטרים
test TestDescription

testModuleEnded

public final void testModuleEnded ()

testModuleStarted

public final void testModuleStarted (IInvocationContext moduleContext)

פרמטרים
moduleContext IInvocationContext

testRunEnded

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

פרמטרים
elapsedTimeMillis long

runMetrics

testRunFailed

public final void testRunFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

פרמטרים
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

פרמטרים
runName String

testCount int

attemptNumber int

testRunStarted

public final void testRunStarted (String runName, 
                int testCount)

פרמטרים
runName String

testCount int

testRunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

פרמטרים
runName String

testCount int

attemptNumber int

startTime long

הבדיקה התחילה

public final void testStarted (TestDescription test, 
                long startTime)

פרמטרים
test TestDescription

startTime long

הבדיקה התחילה

public final void testStarted (TestDescription test)

פרמטרים
test TestDescription

שיטות מוגנות

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

יוצר הפניה צאצא עבור מודול.

פרמטרים
record TestRecordProto.TestRecord

החזרות
TestRecordProto.ChildReference