InvocationProtoResultReporter

public class InvocationProtoResultReporter
extends ModuleProtoResultReporter

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


Trình báo cáo để lưu trữ thông tin lưu vào bộ nhớ đệm ở cấp lệnh gọi và danh sách mô-đun của lệnh gọi đó

Tóm tắt

Hàm khởi tạo công khai

InvocationProtoResultReporter()
InvocationProtoResultReporter(IInvocationContext mainInvocationContext, boolean granularResults)

Phương thức công khai

void invocationFailed(FailureDescription failure)

Báo cáo một lệnh gọi chưa hoàn tất do một số điều kiện lỗi.

void invocationFailed(Throwable cause)

Báo cáo một lệnh gọi chưa hoàn tất do một số điều kiện lỗi.

void invocationStarted(IInvocationContext context)

Báo cáo thời điểm bắt đầu lệnh gọi kiểm thử.

Phương thức được bảo vệ

void beforeModuleStart()

Hàm khởi tạo công khai

InvocationProtoResultReporter

public InvocationProtoResultReporter ()

InvocationProtoResultReporter

public InvocationProtoResultReporter (IInvocationContext mainInvocationContext, 
                boolean granularResults)

Tham số
mainInvocationContext IInvocationContext

granularResults boolean

Phương thức công khai

invocationFailed

public void invocationFailed (FailureDescription failure)

Báo cáo một lệnh gọi chưa hoàn tất do một số điều kiện lỗi.

Sẽ được khung TradeFederation tự động gọi.

Tham số
failure FailureDescription: FailureDescription mô tả nguyên nhân gây ra lỗi

invocationFailed

public void invocationFailed (Throwable cause)

Báo cáo một lệnh gọi chưa hoàn tất do một số điều kiện lỗi.

Sẽ được khung TradeFederation tự động gọi.

Tham số
cause Throwable: nguyên nhân Throwable gây ra lỗi

invocationStarted

public void invocationStarted (IInvocationContext context)

Báo cáo thời điểm bắt đầu lệnh gọi kiểm thử.

Sẽ được khung TradeFederation tự động gọi. Trình báo cáo cần ghi đè phương thức này để hỗ trợ báo cáo nhiều thiết bị.

Tham số
context IInvocationContext: thông tin về lệnh gọi

Phương thức được bảo vệ

beforeModuleStart

protected void beforeModuleStart ()