DosyaProtoResultReporter

public class FileProtoResultReporter
extends ProtoResultReporter

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


TestRecord bir dosyaya aktaran protokol raporlayıcısı.

Özet

Alanlar

public static final String PERIODIC_PROTO_WRITING_OPTION

public static final String PROTO_OUTPUT_FILE

public static final String USE_DELIMITED_API

Kamu inşaatçıları

FileProtoResultReporter ()

Genel yöntemler

File getOutputFile ()
boolean isPeriodicWriting ()

Periyodik yazmanın etkin olup olmadığı.

void processFinalProto (TestRecordProto.TestRecord finalRecord)

Tüm sonuçlarla birlikte son protokolün işlenmesi.

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

invocationStarted(com.android.tradefed.invoker.IInvocationContext) oluştuktan sonra kısmi çağırma test kaydı protokolünün işlenmesi.

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() oluştuktan sonra sonlandırılmış modül kayıt protokolünün işlenmesi.

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ERROR(/#testRunEnded(long,HashMap)) oluştuktan sonra sonlandırılmış çalıştırma kaydı protokolünün işlenmesi.

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

Sonucun çıktısının alınacağı dosyayı ayarlar.

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

Her modülün ayrı ayrı bir dosyaya yazılmasını etkinleştirin.

Korumalı yöntemler

TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

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

Alanlar

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

Kamu inşaatçıları

DosyaProtoResultReporter

public FileProtoResultReporter ()

Genel yöntemler

getOutputFile

public File getOutputFile ()

İadeler
File

PeriyodikYazma

public boolean isPeriodicWriting ()

Periyodik yazmanın etkin olup olmadığı.

İadeler
boolean

süreçFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Tüm sonuçlarla birlikte son protokolün işlenmesi.

Parametreler
finalRecord TestRecordProto.TestRecord : Tüm çağırma sonuçlarını içeren sonlandırılmış protokol.

prosesStartInvokasyon

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

invocationStarted(com.android.tradefed.invoker.IInvocationContext) oluştuktan sonra kısmi çağırma test kaydı protokolünün işlenmesi.

Parametreler
invocationStartRecord TestRecordProto.TestRecord : invokasyonStart'tan sonra doldurulan kısmi protokol.

invocationContext IInvocationContext : Çağrı IInvocationContext .

süreçTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() oluştuktan sonra sonlandırılmış modül kayıt protokolünün işlenmesi.

Parametreler
moduleRecord TestRecordProto.TestRecord : Modülü temsil eden sonlandırılmış protokol.

süreçTestRunEnded

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

ERROR(/#testRunEnded(long,HashMap)) oluştuktan sonra sonlandırılmış çalıştırma kaydı protokolünün işlenmesi.

Parametreler
runRecord TestRecordProto.TestRecord : Çalıştırmayı temsil eden sonlandırılmış protokol.

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

setSınırlandırılmışÇıktı

public void setDelimitedOutput (boolean delimitedOutput)

Parametreler
delimitedOutput boolean

setFileOutput

public void setFileOutput (File output)

Sonucun çıktısının alınacağı dosyayı ayarlar.

Parametreler
output File

setÇıktıDosyası

public void setOutputFile (File outputFile)

Parametreler
outputFile File

setPeriyodikYazma

public void setPeriodicWriting (boolean enabled)

Her modülün ayrı ayrı bir dosyaya yazılmasını etkinleştirin.

Parametreler
enabled boolean

Korumalı yöntemler

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

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

Parametreler
record TestRecordProto.TestRecord

İadeler
TestRecordProto.ChildReference