Ab dem 27. März 2025 empfehlen wir, android-latest-release
anstelle von aosp-main
zu verwenden, um AOSP zu erstellen und Beiträge dazu zu leisten. Weitere Informationen finden Sie unter Änderungen am AOSP.
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
ProtoResultReporter
public
abstract
class
ProtoResultReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
java.lang.Object
|
↳ |
com.android.tradefed.result.proto.ProtoResultReporter
|
Bekannte direkte Unterklassen
|
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 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 .
|
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 ()
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 |
|
Alle Inhalte und Codebeispiele auf dieser Seite unterliegen den Lizenzen wie im Abschnitt Inhaltslizenz beschrieben. Java und OpenJDK sind Marken oder eingetragene Marken von Oracle und/oder seinen Tochtergesellschaften.
Zuletzt aktualisiert: 2025-03-26 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-26 (UTC)."],[],[]]