FileProtoResultReporter

public class FileProtoResultReporter
extends ProtoResultReporter

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


Proto-Reporter, der TestRecord in eine Datei schreibt.

Zusammenfassung

Konstanten

String PERIODIC_PROTO_WRITING_OPTION

String PROTO_OUTPUT_FILE

String USE_DELIMITED_API

Öffentliche Konstruktoren

FileProtoResultReporter()

Öffentliche Methoden

File getOutputFile()
boolean isPeriodicWriting()

Gibt an, ob das regelmäßige Schreiben aktiviert ist.

void processFinalProto(TestRecordProto.TestRecord finalRecord)

Verarbeitung des endgültigen Protokolls mit allen Ergebnissen.

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

Verarbeitung des Testdatensatz-Protos für den Teilaufruf nach invocationStarted(IInvocationContext).

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

Verarbeitung des finalisierten Moduldatensatz-Protos nach testModuleEnded().

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Verarbeitung des finalen Laufdatensatz-Protos nach dem Ereignis testRunEnded(long,HashMap).

void setDelimitedOutput(boolean delimitedOutput)
void setOutputFile(File outputFile)
void setPeriodicWriting(boolean enabled)

Aktivieren Sie das Schreiben jedes Moduls in eine Datei.

Geschützte Methoden

TestRecordProto.ChildReference createModuleChildReference(TestRecordProto.TestRecord record)

Erstellt eine untergeordnete Referenz für ein Modul.

Konstanten

PERIODIC_PROTO_WRITING_OPTION

public static final String PERIODIC_PROTO_WRITING_OPTION

Konstanter Wert: "periodic-proto-writing"

PROTO_OUTPUT_FILE

public static final String PROTO_OUTPUT_FILE

Constant Value: "proto-output-file"

USE_DELIMITED_API

public static final String USE_DELIMITED_API

Konstanter Wert: "use-delimited-api"

Öffentliche Konstruktoren

FileProtoResultReporter

public FileProtoResultReporter ()

Öffentliche Methoden

getOutputFile

public File getOutputFile ()

Gibt Folgendes zurück:
File

isPeriodicWriting

public boolean isPeriodicWriting ()

Gibt an, ob das regelmäßige Schreiben aktiviert ist.

Gibt Folgendes zurück:
boolean

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Verarbeitung des endgültigen Protokolls mit allen Ergebnissen.

Parameter
finalRecord TestRecordProto.TestRecord: Das endgültige Proto mit allen Aufrufergebnissen.

processStartInvocation

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

Verarbeitung des Testdatensatz-Protos für den Teilaufruf nach invocationStarted(IInvocationContext).

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

invocationContext IInvocationContext: Der Aufruf IInvocationContext.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Verarbeitung des finalisierten Moduldatensatz-Protos nach testModuleEnded().

Parameter
moduleRecord TestRecordProto.TestRecord: Das endgültige Proto, das das Modul darstellt.

processTestRunEnded

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

Verarbeitung des finalen Laufdatensatz-Protos nach dem Ereignis testRunEnded(long,HashMap).

Parameter
runRecord TestRecordProto.TestRecord: Das endgültige Proto, das den Lauf darstellt.

moduleInProgress boolean: Gibt an, ob ein Modul gerade bearbeitet wird.

setDelimitedOutput

public void setDelimitedOutput (boolean delimitedOutput)

Parameter
delimitedOutput boolean

setOutputFile

public void setOutputFile (File outputFile)

Parameter
outputFile File

setPeriodicWriting

public void setPeriodicWriting (boolean enabled)

Aktivieren Sie das Schreiben jedes Moduls 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

Gibt zurück
TestRecordProto.ChildReference