FileProtoResultReporter
public class FileProtoResultReporter
extends ProtoResultReporter
java.lang.Object | ||
↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
↳ | com.android.tradefed.result.proto.FileProtoResultReporter |
Proto-Reporter, der den TestRecord
in eine Datei ausgibt.
Zusammenfassung
Felder | |
---|---|
public static final String | PERIODIC_PROTO_WRITING_OPTION |
public static final String | PROTO_OUTPUT_FILE |
public static final String | USE_DELIMITED_API
|
Öffentliche Konstrukteure | |
---|---|
FileProtoResultReporter () |
Öffentliche Methoden | |
---|---|
File | getOutputFile () |
boolean | isPeriodicWriting () Ob periodisches Schreiben aktiviert ist oder nicht. |
void | processFinalProto (TestRecordProto.TestRecord finalRecord) Abwicklung des finalen Protos mit allen Ergebnissen. |
void | processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext) Behandlung des partiellen Aufruftestdatensatzes proto, nachdem |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) Behandlung des abgeschlossenen Moduldatensatzprotos nach dem Auftreten |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) Behandlung des abgeschlossenen Laufaufzeichnungsprotos, nachdem |
void | setDelimitedOutput (boolean delimitedOutput) |
void | setFileOutput (File output) Legt die Datei fest, in der das Ergebnis ausgegeben werden soll. |
void | setOutputFile (File outputFile) |
void | setPeriodicWriting (boolean enabled) Aktivieren Sie das Schreiben jedes Moduls einzeln in eine Datei. |
Geschützte Methoden | |
---|---|
TestRecordProto.ChildReference | createModuleChildReference (TestRecordProto.TestRecord record) Erstellt eine untergeordnete Referenz für ein Modul. |
Felder
PERIODIC_PROTO_WRITING_OPTION
public static final String PERIODIC_PROTO_WRITING_OPTION
PROTO_OUTPUT_FILE
public static final String PROTO_OUTPUT_FILE
USE_DELIMITED_API
public static final String USE_DELIMITED_API
Öffentliche Konstrukteure
FileProtoResultReporter
public FileProtoResultReporter ()
Öffentliche Methoden
getOutputFile
public File getOutputFile ()
Kehrt zurück | |
---|---|
File |
isPeriodicWriting
public boolean isPeriodicWriting ()
Ob periodisches Schreiben aktiviert ist oder nicht.
Kehrt zurück | |
---|---|
boolean |
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
Abwicklung des finalen Protos mit allen Ergebnissen.
Parameter | |
---|---|
finalRecord | TestRecordProto.TestRecord : Das fertige Proto mit allen Aufrufergebnissen. |
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)
Behandlung des partiellen Aufruftestdatensatzes proto, nachdem invocationStarted(com.android.tradefed.invoker.IInvocationContext)
aufgetreten ist.
Parameter | |
---|---|
invocationStartRecord | TestRecordProto.TestRecord : Das partielle Proto, das nach dem AufrufStart aufgefüllt wird. |
invocationContext | IInvocationContext : Der Aufruf IInvocationContext . |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
Behandlung des abgeschlossenen Moduldatensatzprotos nach dem Auftreten testModuleEnded()
.
Parameter | |
---|---|
moduleRecord | TestRecordProto.TestRecord : Das fertige Proto, das das Modul darstellt. |
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
Behandlung des abgeschlossenen Laufaufzeichnungsprotos, nachdem ERROR(/#testRunEnded(long,HashMap))
aufgetreten ist.
Parameter | |
---|---|
runRecord | TestRecordProto.TestRecord : Das abgeschlossene Proto, das die Ausführung darstellt. |
moduleInProgress | boolean : ob ein Modul in Bearbeitung ist oder nicht. |
setDelimitedOutput
public void setDelimitedOutput (boolean delimitedOutput)
Parameter | |
---|---|
delimitedOutput | boolean |
setFileOutput
public void setFileOutput (File output)
Legt die Datei fest, in der das Ergebnis ausgegeben werden soll.
Parameter | |
---|---|
output | File |
setOutputFile
public void setOutputFile (File outputFile)
Parameter | |
---|---|
outputFile | File |
setPeriodicWriting
public void setPeriodicWriting (boolean enabled)
Aktivieren Sie das Schreiben jedes Moduls einzeln in eine Datei.
Parameter | |
---|---|
enabled | boolean |
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 |