FileProtoResultReporter

public class FileProtoResultReporter
extends ProtoResultReporter

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


TestRecord değerini bir dosyaya boşaltan Proto muhabiri.

Özet

Sabitler

String PERIODIC_PROTO_WRITING_OPTION

String PROTO_OUTPUT_FILE

String USE_DELIMITED_API

Herkese açık oluşturucular

FileProtoResultReporter()

Herkese açık yöntemler

File getOutputFile()
boolean isPeriodicWriting()

Periyodik yazma özelliğinin etkin olup olmadığı.

void processFinalProto(TestRecordProto.TestRecord finalRecord)

Tüm sonuçları içeren nihai prototipin işlenmesi.

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) gerçekleştikten sonra kısmi çağırma testi kaydı proto'sunun işlenmesi.

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

testModuleEnded() gerçekleştikten sonra sonlandırılmış modül kaydı proto'sunun işlenmesi.

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ERROR(/#testRunEnded(long,HashMap)) işleminden sonra tamamlanmış çalıştırma kaydı proto'sunun işlenmesi.

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

Her modülün ayrı ayrı dosyaya yazılmasını sağlar.

Korunan yöntemler

TestRecordProto.ChildReference createModuleChildReference(TestRecordProto.TestRecord record)

Bir modül için alt referans oluşturur.

Sabitler

PERIODIC_PROTO_WRITING_OPTION

public static final String PERIODIC_PROTO_WRITING_OPTION

Sabit Değer: "periodic-proto-writing"

PROTO_OUTPUT_FILE

public static final String PROTO_OUTPUT_FILE

Sabit Değer: "proto-output-file"

USE_DELIMITED_API

public static final String USE_DELIMITED_API

Sabit Değer: "use-delimited-api"

Herkese açık oluşturucular

FileProtoResultReporter

public FileProtoResultReporter ()

Herkese açık yöntemler

getOutputFile

public File getOutputFile ()

İlerlemeler
File

isPeriodicWriting

public boolean isPeriodicWriting ()

Periyodik yazma özelliğinin etkin olup olmadığı.

İlerlemeler
boolean

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Tüm sonuçları içeren nihai prototipin işlenmesi.

Parametreler
finalRecord TestRecordProto.TestRecord: Tüm çağırma sonuçlarını içeren son prototip.

processStartInvocation

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

invocationStarted(com.android.tradefed.invoker.IInvocationContext) gerçekleştikten sonra kısmi çağırma testi kaydı proto'sunun işlenmesi.

Parametreler
invocationStartRecord TestRecordProto.TestRecord: invocationStart'tan sonra doldurulan kısmi proto.

invocationContext IInvocationContext: Çağrı IInvocationContext.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() gerçekleştikten sonra sonlandırılmış modül kaydı proto'sunun işlenmesi.

Parametreler
moduleRecord TestRecordProto.TestRecord: Modülü temsil eden son proto.

processTestRunEnded

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

ERROR(/#testRunEnded(long,HashMap)) işleminden sonra tamamlanmış çalıştırma kaydı proto'sunun işlenmesi.

Parametreler
runRecord TestRecordProto.TestRecord: Çalıştırmayı temsil eden son proto.

moduleInProgress boolean: Bir modülün devam edip etmediği

setDelimitedOutput

public void setDelimitedOutput (boolean delimitedOutput)

Parametreler
delimitedOutput boolean

setOutputFile

public void setOutputFile (File outputFile)

Parametreler
outputFile File

setPeriodicWriting

public void setPeriodicWriting (boolean enabled)

Her modülün ayrı ayrı dosyaya yazılmasını sağlar.

Parametreler
enabled boolean

Korunan yöntemler

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Bir modül için alt referans oluşturur.

Parametreler
record TestRecordProto.TestRecord

İlerlemeler
TestRecordProto.ChildReference