ProtoResultReporter

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

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


דיווח על תוצאות יוצר protobuf של TestRecord עם כל התוצאות בפנים. צריך להרחיב את הקוד כדי לטפל בבעיה של הטיפול ב-proto הסופי ב-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)

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

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)

טיפול ב-proto של רשומת הריצה הסופית אחרי 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)
void 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)
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 ()

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

invocationEnded

public final void invocationEnded (long elapsedTime)

פרמטרים
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

פרמטרים
cause Throwable

invocationStarted

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)

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

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

processStartInvocation

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

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

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

invocationContext IInvocationContext: הקריאה IInvocationContext.

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

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

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

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

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

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

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

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

פרמטרים
moduleRecord TestRecordProto.TestRecord: קובץ ה-proto הסופי שמייצג את המודול.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

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

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

processTestRunEnded

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

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

פרמטרים
runRecord TestRecordProto.TestRecord: קובץ ה-proto הסופי שמייצג את ההרצה.

moduleInProgress boolean: אם מודול מסוים נמצא בטיפול או לא.

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

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

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

supportGranularResults

public boolean supportGranularResults ()

החזרות
boolean

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

פרמטרים
test TestDescription

failure FailureDescription

testEnded

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

פרמטרים
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

פרמטרים
test TestDescription

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                FailureDescription failure)

פרמטרים
test TestDescription

failure FailureDescription

testFailed

public final void testFailed (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

testIgnored

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

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

פרמטרים
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

פרמטרים
test TestDescription

שיטות מוגנות

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

יצירת הפניה לילד של מודול.

פרמטרים
record TestRecordProto.TestRecord

החזרות
TestRecordProto.ChildReference