DosyaProtoSonuçRaporlayıcısı
public class FileProtoResultReporter
extends ProtoResultReporter
java.lang.Nesne | ||
↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
↳ | com.android.tradefed.result.proto.FileProtoResultReporter |
TestRecord
bir dosyaya döken proto raportör.
Ö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) |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) |
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ü ayrı ayrı bir dosyaya yazmayı etkinleştirin. |
Korumalı yöntemler | |
---|---|
TestRecordProto.ChildReference | createModuleChildReference (TestRecordProto.TestRecord record) Bir modül için bir alt referans 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ı
DosyaProtoSonuçRaporlayıcısı
public FileProtoResultReporter ()
Genel yöntemler
getOutputFile
public File getOutputFile ()
İadeler | |
---|---|
File |
Periyodik Yazım
public boolean isPeriodicWriting ()
Periyodik yazmanın etkin olup olmadığı.
İadeler | |
---|---|
boolean |
süreçSonProto
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 kesinleştirilmiş protokol. |
süreçBaşlatÇağırma
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)
invocationStarted(com.android.tradefed.invoker.IInvocationContext)
gerçekleştikten sonra kısmi çağrı testi kaydı protokolünün işlenmesi.
parametreler | |
---|---|
invocationStartRecord | TestRecordProto.TestRecord : Başlatma çağrısından sonra doldurulan kısmi protokol. |
invocationContext | IInvocationContext : IInvocationContext çağrısı. |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
testModuleEnded()
meydana geldikten sonra kesinleşmiş modül kaydı protokolünün işlenmesi.
parametreler | |
---|---|
moduleRecord | TestRecordProto.TestRecord : Modülü temsil eden kesinleşmiş protokol. |
süreçTestÇalışmasıBitti
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ış proto. |
moduleInProgress | boolean : bir modülün devam edip etmediği. |
setSınırlıÇıkış
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 |
setOutputFile
public void setOutputFile (File outputFile)
parametreler | |
---|---|
outputFile | File |
setPeriyodikYazma
public void setPeriodicWriting (boolean enabled)
Her modülü ayrı ayrı bir dosyaya yazmayı etkinleştirin.
parametreler | |
---|---|
enabled | boolean |
Korumalı yöntemler
createModuleChildReference
protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)
Bir modül için bir alt referans oluşturur.
parametreler | |
---|---|
record | TestRecordProto.TestRecord |
İadeler | |
---|---|
TestRecordProto.ChildReference |