FileProtoResultReporter

public class FileProtoResultReporter
extends ProtoResultReporter

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


Trình báo cáo Proto kết xuất TestRecord vào một tệp.

Bản tóm tắt

Lĩnh vực

public static final String PERIODIC_PROTO_WRITING_OPTION

public static final String PROTO_OUTPUT_FILE

public static final String USE_DELIMITED_API

Nhà thầu xây dựng công cộng

FileProtoResultReporter ()

Phương pháp công khai

File getOutputFile ()
boolean isPeriodicWriting ()

Cho dù tính năng ghi định kỳ có được bật hay không.

void processFinalProto (TestRecordProto.TestRecord finalRecord)

Xử lý nguyên mẫu cuối cùng với tất cả các kết quả.

void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)

Việc xử lý nguyên bản bản ghi kiểm tra lệnh gọi một phần sau khi invocationStarted(com.android.tradefed.invoker.IInvocationContext) xảy ra.

void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Xử lý nguyên mẫu bản ghi mô-đun đã hoàn thiện sau khi xảy ra testModuleEnded() .

void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Việc xử lý nguyên mẫu bản ghi lần chạy cuối cùng sau khi xảy ra ERROR(/#testRunEnded(long,HashMap)) .

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

Đặt tập tin nơi xuất kết quả.

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

Cho phép ghi từng mô-đun riêng lẻ vào một tệp.

Phương pháp được bảo vệ

TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Tạo một tham chiếu con cho một mô-đun.

Lĩnh vực

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

Nhà thầu xây dựng công cộng

FileProtoResultReporter

public FileProtoResultReporter ()

Phương pháp công khai

getOutputFile

public File getOutputFile ()

Trả lại
File

isPeriodicWriting

public boolean isPeriodicWriting ()

Cho dù tính năng ghi định kỳ có được bật hay không.

Trả lại
boolean

quá trìnhFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Xử lý nguyên mẫu cuối cùng với tất cả các kết quả.

Thông số
finalRecord TestRecordProto.TestRecord : Proto cuối cùng với tất cả các kết quả gọi.

quá trìnhBắt đầuInvocation

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

Việc xử lý nguyên bản bản ghi kiểm tra lệnh gọi một phần sau khi invocationStarted(com.android.tradefed.invoker.IInvocationContext) xảy ra.

Thông số
invocationStartRecord TestRecordProto.TestRecord : Proto một phần được điền sau lệnh gọiStart.

invocationContext IInvocationContext : Lệnh gọi IInvocationContext .

quá trìnhKiểm traModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Xử lý nguyên mẫu bản ghi mô-đun đã hoàn thiện sau khi xảy ra testModuleEnded() .

Thông số
moduleRecord TestRecordProto.TestRecord : Proto cuối cùng đại diện cho mô-đun.

quá trìnhTestRunĐã kết thúc

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

Việc xử lý nguyên mẫu bản ghi lần chạy cuối cùng sau khi xảy ra ERROR(/#testRunEnded(long,HashMap)) .

Thông số
runRecord TestRecordProto.TestRecord : Proto cuối cùng thể hiện lần chạy.

moduleInProgress boolean : mô-đun có đang được tiến hành hay không.

setDelimitedOutput

public void setDelimitedOutput (boolean delimitedOutput)

Thông số
delimitedOutput boolean

setFileOutput

public void setFileOutput (File output)

Đặt tập tin nơi xuất kết quả.

Thông số
output File

setOutputFile

public void setOutputFile (File outputFile)

Thông số
outputFile File

bộĐịnh kỳViết

public void setPeriodicWriting (boolean enabled)

Cho phép ghi từng mô-đun riêng lẻ vào một tệp.

Thông số
enabled boolean

Phương pháp được bảo vệ

createModuleChildReference

protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)

Tạo một tham chiếu con cho một mô-đun.

Thông số
record TestRecordProto.TestRecord

Trả lại
TestRecordProto.ChildReference