Trình báo cáo kết quả Proto

public abstract class ProtoResultReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

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


Trình báo cáo kết quả xây dựng một protobuf TestRecord với tất cả các kết quả bên trong. Nên được mở rộng để xử lý những việc cần làm với proto cuối cùng trong processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord) .

Bản tóm tắt

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

ProtoResultReporter ()

Phương pháp công khai

final void invocationEnded (long elapsedTime)
void invocationFailed (FailureDescription failure)
void invocationFailed (Throwable cause)
final void invocationStarted (IInvocationContext context)
final void logAssociation (String dataName, LogFile logFile)
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 processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Việc xử lý nguyên mẫu bản ghi trường hợp thử nghiệm cuối cùng sau khi ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) diễn ra.

void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Việc xử lý nguyên mẫu bản ghi trường hợp thử nghiệm một phần sau khi xảy ra testStarted(com.android.tradefed.result.TestDescription, long) .

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 processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Việc xử lý nguyên mẫu bản ghi mô-đun một phần sau khi xảy ra testModuleStarted(com.android.tradefed.invoker.IInvocationContext) .

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 ITestLifeCycleReceiver.testRunEnded(long, HashMap) .

void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Việc xử lý nguyên mẫu bản ghi chạy thử nghiệm một phần sau khi xảy ra testRunStarted(String, int) .

boolean supportGranularResults ()
final void testAssumptionFailure (TestDescription test, String trace)
final void testAssumptionFailure (TestDescription test, FailureDescription failure)
final void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)
void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)
final void testFailed (TestDescription test, FailureDescription failure)
final void testFailed (TestDescription test, String trace)
final void testIgnored (TestDescription test)
final void testModuleEnded ()
final void testModuleStarted (IInvocationContext moduleContext)
final void testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics)
final void testRunFailed (FailureDescription failure)
final void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount, int attemptNumber)
final void testRunStarted (String runName, int testCount)
void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
final void testStarted (TestDescription test, long startTime)
final void testStarted (TestDescription test)

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.

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

Trình báo cáo kết quả Proto

public ProtoResultReporter ()

Phương pháp công khai

lời mờiĐã kết thúc

public final void invocationEnded (long elapsedTime)

Thông số
elapsedTime long

lời gọi không thành công

public void invocationFailed (FailureDescription failure)

Thông số
failure FailureDescription

lời gọi không thành công

public void invocationFailed (Throwable cause)

Thông số
cause Throwable

lời gọiBắt đầu

public final void invocationStarted (IInvocationContext context)

Thông số
context IInvocationContext

logHiệp hội

public final void logAssociation (String dataName, 
                LogFile logFile)

Thông số
dataName String

logFile LogFile

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ìnhTestCaseĐã kết thúc

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Việc xử lý nguyên mẫu bản ghi trường hợp thử nghiệm cuối cùng sau khi ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) diễn ra.

Thông số
testCaseRecord TestRecordProto.TestRecord : Proto cuối cùng đại diện cho một trường hợp thử nghiệm.

quá trìnhTestCaseBắt đầu

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Việc xử lý nguyên mẫu bản ghi trường hợp thử nghiệm một phần sau khi xảy ra testStarted(com.android.tradefed.result.TestDescription, long) .

Thông số
testCaseStartedRecord TestRecordProto.TestRecord : Proto một phần đại diện cho trường hợp thử nghiệm.

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ìnhTestModuleBắt đầu

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Việc xử lý nguyên mẫu bản ghi mô-đun một phần sau khi xảy ra testModuleStarted(com.android.tradefed.invoker.IInvocationContext) .

Thông số
moduleStartRecord TestRecordProto.TestRecord : Proto một phần đạ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 ITestLifeCycleReceiver.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.

quá trìnhTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Việc xử lý nguyên mẫu bản ghi chạy thử nghiệm một phần sau khi xảy ra testRunStarted(String, int) .

Thông số
runStartedRecord TestRecordProto.TestRecord : Proto một phần thể hiện lần chạy.

hỗ trợGranularKết quả

public boolean supportGranularResults ()

Trả lại
boolean

kiểm traGiả địnhThất bại

public final void testAssumptionFailure (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

kiểm traGiả địnhThất bại

public final void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Thông số
test TestDescription

failure FailureDescription

kiểm traĐã kết thúc

public final void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Thông số
test TestDescription

endTime long

testMetrics

kiểm traĐã kết thúc

public void testEnded (TestDescription test, 
                 testMetrics)

Thông số
test TestDescription

testMetrics

thử nghiệm thất bại

public final void testFailed (TestDescription test, 
                FailureDescription failure)

Thông số
test TestDescription

failure FailureDescription

thử nghiệm thất bại

public final void testFailed (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

kiểm traBỏ qua

public final void testIgnored (TestDescription test)

Thông số
test TestDescription

testModuleĐã kết thúc

public final void testModuleEnded ()

testModuleBắt đầu

public final void testModuleStarted (IInvocationContext moduleContext)

Thông số
moduleContext IInvocationContext

thử nghiệmChạyĐã kết thúc

public final void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

Thông số
elapsedTimeMillis long

runMetrics

thử nghiệm Chạy không thành công

public final void testRunFailed (FailureDescription failure)

Thông số
failure FailureDescription

thử nghiệm Chạy không thành công

public final void testRunFailed (String errorMessage)

Thông số
errorMessage String

thử nghiệmChạyBắt đầu

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

Thông số
runName String

testCount int

attemptNumber int

thử nghiệmChạyBắt đầu

public final void testRunStarted (String runName, 
                int testCount)

Thông số
runName String

testCount int

thử nghiệmChạyBắt đầu

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

Thông số
runName String

testCount int

attemptNumber int

startTime long

thử nghiệmBắt đầu

public final void testStarted (TestDescription test, 
                long startTime)

Thông số
test TestDescription

startTime long

thử nghiệmBắt đầu

public final void testStarted (TestDescription test)

Thông số
test TestDescription

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