FileProtoResultReporter

public class FileProtoResultReporter
extends ProtoResultReporter

java.lang.Objek
com.android.tradefed.result.proto.ProtoResultReporter
com.android.tradefed.result.proto.FileProtoResultReporter


Reporter proto yang membuang TestRecord ke dalam file.

Ringkasan

bidang

public static final String PERIODIC_PROTO_WRITING_OPTION

public static final String PROTO_OUTPUT_FILE

public static final String USE_DELIMITED_API

Konstruktor publik

FileProtoResultReporter ()

Metode publik

File getOutputFile ()
boolean isPeriodicWriting ()

Apakah penulisan berkala diaktifkan atau tidak.

void processFinalProto (TestRecordProto.TestRecord finalRecord)

Penanganan proto akhir dengan semua hasil.

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

Penanganan proto catatan pengujian pemanggilan parsial setelah invocationStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Penanganan proto rekaman modul yang diselesaikan setelah testModuleEnded() terjadi.

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Penanganan proto rekaman proses yang diselesaikan setelah ERROR(/#testRunEnded(long,HashMap)) terjadi.

void setDelimitedOutput (boolean delimitedOutput)
void setFileOutput (File output)

Menetapkan file tempat menampilkan hasilnya.

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

Aktifkan penulisan setiap modul satu per satu ke file.

Metode yang dilindungi

TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Membuat referensi anak untuk sebuah modul.

bidang

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

Konstruktor publik

FileProtoResultReporter

public FileProtoResultReporter ()

Metode publik

dapatkanOutputFile

public File getOutputFile ()

Kembali
File

adalah Penulisan Berkala

public boolean isPeriodicWriting ()

Apakah penulisan berkala diaktifkan atau tidak.

Kembali
boolean

prosesFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Penanganan proto akhir dengan semua hasil.

Parameter
finalRecord TestRecordProto.TestRecord : Proto yang diselesaikan dengan semua hasil pemanggilan.

prosesMulaiInvokasi

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

Penanganan proto catatan pengujian pemanggilan parsial setelah invocationStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.

Parameter
invocationStartRecord TestRecordProto.TestRecord : Sebagian proto diisi setelah invocationStart.

invocationContext IInvocationContext : Doa IInvocationContext .

prosesTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Penanganan proto rekaman modul yang diselesaikan setelah testModuleEnded() terjadi.

Parameter
moduleRecord TestRecordProto.TestRecord : Proto final yang mewakili modul.

prosesTestRunEnded

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

Penanganan proto rekaman proses yang diselesaikan setelah ERROR(/#testRunEnded(long,HashMap)) terjadi.

Parameter
runRecord TestRecordProto.TestRecord : Proto final yang mewakili proses.

moduleInProgress boolean : apakah suatu modul sedang berlangsung atau tidak.

setDelimitedOutput

public void setDelimitedOutput (boolean delimitedOutput)

Parameter
delimitedOutput boolean

setFileOutput

public void setFileOutput (File output)

Menetapkan file tempat menampilkan hasilnya.

Parameter
output File

setOutputFile

public void setOutputFile (File outputFile)

Parameter
outputFile File

setPeriodicWriting

public void setPeriodicWriting (boolean enabled)

Aktifkan penulisan setiap modul satu per satu ke file.

Parameter
enabled boolean

Metode yang dilindungi

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Membuat referensi anak untuk sebuah modul.

Parameter
record TestRecordProto.TestRecord

Kembali
TestRecordProto.ChildReference