ProtoResultReporter
public abstract class ProtoResultReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Object |
↳ | com.android.tradefed.result.proto.ProtoResultReporter |
Bekannte direkte Unterklassen |
Ergebnis Reporter bauen ein TestRecord
protobuf mit allen im Inneren Ergebnisse. Sollte erweitert zu handhaben, was mit dem letzten Proto zu tun processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord)
.
Zusammenfassung
Ö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) Abwicklung des finalen Prototyps mit allen Ergebnissen. |
void | processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext) Die Handhabung des Teil Invokation Prüfprotokolls proto nach invocationStarted(com.android.tradefed.invoker.IInvocationContext) aufgetreten ist . |
void | processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord) Die Handhabung des finalisierten Testfallakte Proto nach ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) aufgetreten ist . |
void | processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord) Die Handhabung des Teiltestfalldatensatz proto nach testStarted(com.android.tradefed.result.TestDescription, long) aufgetreten ist . |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) Die Handhabung des Moduls finalisierten Datensatz proto nach testModuleEnded() aufgetreten ist . |
void | processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord) Die Handhabung des Modulteildatensatzes proto nach testModuleStarted(com.android.tradefed.invoker.IInvocationContext) aufgetreten ist . |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) Die Handhabung des finalisierten Laufaufzeichnung Proto nach ITestLifeCycleReceiver.testRunEnded(long, HashMap) aufgetreten ist . |
void | processTestRunStarted (TestRecordProto.TestRecord runStartedRecord) Die Handhabung der Testteillaufaufzeichnung proto nach testRunStarted(String, int) aufgetreten ist . |
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) |
Geschützte Methoden |
---|
TestRecordProto.ChildReference | createModuleChildReference (TestRecordProto.TestRecord record) Erstellt eine untergeordnete Referenz für ein Modul. |
Öffentliche Konstrukteure
ProtoResultReporter
public ProtoResultReporter ()
Öffentliche Methoden
AufrufBeendet
public final void invocationEnded (long elapsedTime)
Parameter |
---|
elapsedTime | long |
Aufruf fehlgeschlagen
public void invocationFailed (FailureDescription failure)
Parameter |
---|
failure | FailureDescription |
Aufruf fehlgeschlagen
public void invocationFailed (Throwable cause)
Parameter |
---|
cause | Throwable |
AufrufGestartet
public final void invocationStarted (IInvocationContext context)
Parameter |
---|
context | IInvocationContext |
logAssociation
public final void logAssociation (String dataName,
LogFile logFile)
Parameter |
---|
dataName | String |
logFile | LogFile |
ProzessFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
Abwicklung des finalen Prototyps mit allen Ergebnissen.
Parameter |
---|
finalRecord | TestRecordProto.TestRecord : Die finalisierte Proto mit all Aufruf Ergebnissen. |
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord,
IInvocationContext invocationContext)
Die Handhabung des Teil Invokation Prüfprotokolls proto nach invocationStarted(com.android.tradefed.invoker.IInvocationContext)
aufgetreten ist .
Parameter |
---|
invocationStartRecord | TestRecordProto.TestRecord : Die partielle Proto nach dem invocationStart bevölkert. |
invocationContext | IInvocationContext : Der Aufruf IInvocationContext . |
processTestCaseStarted
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
Die Handhabung des Teiltestfalldatensatz proto nach testStarted(com.android.tradefed.result.TestDescription, long)
aufgetreten ist .
Parameter |
---|
testCaseStartedRecord | TestRecordProto.TestRecord : Die partielle proto den Testfall darstellt. |
ProzessTestModulEnde
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
Die Handhabung des Moduls finalisierten Datensatz proto nach testModuleEnded()
aufgetreten ist .
Parameter |
---|
moduleRecord | TestRecordProto.TestRecord : Der endgültige proto das Modul darstellt. |
processTestModuleStarted
public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)
Die Handhabung des Modulteildatensatzes proto nach testModuleStarted(com.android.tradefed.invoker.IInvocationContext)
aufgetreten ist .
Parameter |
---|
moduleStartRecord | TestRecordProto.TestRecord : Die partielle proto das Modul darstellt. |
ProzessTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)
Die Handhabung des finalisierten Laufaufzeichnung Proto nach ITestLifeCycleReceiver.testRunEnded(long, HashMap)
aufgetreten ist .
Parameter |
---|
runRecord | TestRecordProto.TestRecord : Die finalisierte proto den Lauf darstellt. |
moduleInProgress | boolean : ob ein Modul läuft. |
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
Die Handhabung der Testteillaufaufzeichnung proto nach testRunStarted(String, int)
aufgetreten ist .
Parameter |
---|
runStartedRecord | TestRecordProto.TestRecord : Die partielle proto den Lauf repräsentiert. |
supportGranularResults
public boolean supportGranularResults ()
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 |
testBeendet
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
Parameter |
---|
test | TestDescription |
endTime | long |
testMetrics | |
testBeendet
public void testEnded (TestDescription test,
testMetrics)
Parameter |
---|
test | TestDescription |
testMetrics | |
im Test durchgefallen
public final void testFailed (TestDescription test,
FailureDescription failure)
Parameter |
---|
test | TestDescription |
failure | FailureDescription |
im Test durchgefallen
public final void testFailed (TestDescription test,
String trace)
Parameter |
---|
test | TestDescription |
trace | String |
testIgnoriert
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 |
testRunGestartet
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Parameter |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunGestartet
public final void testRunStarted (String runName,
int testCount)
Parameter |
---|
runName | String |
testCount | int |
testRunGestartet
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Parameter |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testGestartet
public final void testStarted (TestDescription test,
long startTime)
Parameter |
---|
test | TestDescription |
startTime | long |
testGestartet
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 |
Kehrt zurück |
---|
TestRecordProto.ChildReference | |