ProtoResultReporter

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

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


Der Ergebnisberichter erstellt ein TestRecord-Protobuf mit allen Ergebnissen. Sollte erweitert werden, um zu steuern, was mit dem endgültigen Prototyp in processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) geschehen soll.

Zusammenfassung

Öffentliche Konstruktoren

ProtoResultReporter()

Öffentliche Methoden

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)

Umgang mit dem endgültigen Prototyp mit allen Ergebnissen

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

Umgang mit dem Testprotokoll für die teilweise Aufrufung nach invocationStarted(com.android.tradefed.invoker.IInvocationContext)

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

Umgang mit dem finalisierten Testfall-Prototyp nach ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap)

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

Umgang mit dem Prototyp des teilweisen Testfalleintrags nach testStarted(com.android.tradefed.result.TestDescription, long)

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

Umgang mit dem Prototyp des finalisierten Modul-Eintrags nach testModuleEnded()

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

Umgang mit dem Prototyp des teilweisen Moduleintrags nach testModuleStarted(com.android.tradefed.invoker.IInvocationContext)

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Umgang mit dem finalisierten Ausführungsprotokoll-Proto nach ITestLifeCycleReceiver.testRunEnded(long, HashMap)

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

Umgang mit dem Prototyp des Datensatzes für den teilweisen Testlauf nach 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)

Geschützte Methoden

TestRecordProto.ChildReference createModuleChildReference(TestRecordProto.TestRecord record)

Erstellt eine untergeordnete Referenz für ein Modul.

Öffentliche Konstruktoren

ProtoResultReporter

public ProtoResultReporter ()

Öffentliche Methoden

invocationEnded

public final void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Parameter
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parameter
cause Throwable

invocationStarted

public final void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

logAssociation

public final void logAssociation (String dataName, 
                LogFile logFile)

Parameter
dataName String

logFile LogFile

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Umgang mit dem endgültigen Prototyp mit allen Ergebnissen

Parameter
finalRecord TestRecordProto.TestRecord: Das fertige Proto mit allen Aufrufergebnissen.

processStartInvocation

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

Umgang mit dem Testprotokoll für die teilweise Aufrufung nach invocationStarted(com.android.tradefed.invoker.IInvocationContext)

Parameter
invocationStartRecord TestRecordProto.TestRecord: Das teilweise Proto, das nach dem Aufrufstart ausgefüllt wird.

invocationContext IInvocationContext: Der Aufruf IInvocationContext.

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Umgang mit dem finalisierten Testfall-Prototyp nach ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap)

Parameter
testCaseRecord TestRecordProto.TestRecord: Das fertige Proto, das einen Testfall darstellt.

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Umgang mit dem Prototyp des teilweisen Testfalleintrags nach testStarted(com.android.tradefed.result.TestDescription, long)

Parameter
testCaseStartedRecord TestRecordProto.TestRecord: Der Teil des Prototyps, der den Testfall darstellt.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Umgang mit dem Prototyp des finalisierten Modul-Eintrags nach testModuleEnded()

Parameter
moduleRecord TestRecordProto.TestRecord: Das fertige Proto, das das Modul darstellt.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Umgang mit dem Prototyp des teilweisen Moduleintrags nach testModuleStarted(com.android.tradefed.invoker.IInvocationContext)

Parameter
moduleStartRecord TestRecordProto.TestRecord: Das teilweise Proto, das das Modul darstellt.

processTestRunEnded

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

Umgang mit dem finalisierten Ausführungsprotokoll-Proto nach ITestLifeCycleReceiver.testRunEnded(long, HashMap)

Parameter
runRecord TestRecordProto.TestRecord: Das fertige Proto, das den Lauf darstellt.

moduleInProgress boolean: ob ein Modul gerade bearbeitet wird.

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Umgang mit dem Prototyp des Datensatzes für den teilweisen Testlauf nach testRunStarted(String, int)

Parameter
runStartedRecord TestRecordProto.TestRecord: Das teilweise Proto, das den Lauf darstellt.

supportGranularResults

public boolean supportGranularResults ()

Returns
boolean

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testEnded

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

Parameter
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parameter
test TestDescription

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testFailed

public final void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

Parameter
test TestDescription

testModuleEnded

public final void testModuleEnded ()

testModuleStarted

public final void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnded

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Parameter
elapsedTimeMillis long

runMetrics

testRunFailed

public final void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public final void testRunFailed (String errorMessage)

Parameter
errorMessage String

testRunStarted

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

Parameter
runName String

testCount int

attemptNumber int

testRunStarted

public final void testRunStarted (String runName, 
                int testCount)

Parameter
runName String

testCount int

testRunStarted

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

Parameter
runName String

testCount int

attemptNumber int

startTime long

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

Parameter
test TestDescription

Geschützte Methoden

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Erstellt eine untergeordnete Referenz für ein Modul.

Parameter
record TestRecordProto.TestRecord

Returns
TestRecordProto.ChildReference