Trình tổng hợp kết quả

public class ResultAggregator
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.retry.ResultAggregator


Trình chuyển tiếp đặc biệt tổng hợp kết quả khi cần, dựa trên chiến lược thử lại đã được thực hiện.

Bản tóm tắt

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

ResultAggregator ( listeners, RetryStrategy strategy) ResultAggregator ( listeners, RetryStrategy strategy)

Phương pháp công khai

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

Chuyển tiếp tất cả nhật ký cấp độ yêu cầu đến trình báo cáo kết quả không hỗ trợ kết quả chi tiết.

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void setLogSaver (ILogSaver logSaver)

void setUpdatedReporting (boolean updatedReporting)

Đặt báo cáo mới.

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)
void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)
void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String name, int testCount, int attemptNumber, long startTime)

void testStarted (TestDescription test, long startTime)

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

File[] getEventsLogs ()

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

Trình tổng hợp kết quả

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

Thông số
listeners

strategy RetryStrategy

Phương pháp công khai

cleanEventsFiles

public void cleanEventsFiles ()

ForwardAggregatedInvocationNhật ký

public final void forwardAggregatedInvocationLogs ()

Chuyển tiếp tất cả nhật ký cấp độ yêu cầu đến trình báo cáo kết quả không hỗ trợ kết quả chi tiết.

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

public 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 void invocationStarted (IInvocationContext context)

Thông số
context IInvocationContext

logHiệp hội

public void logAssociation (String dataName, 
                LogFile logFile)

Thông số
dataName String

logFile LogFile

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Thông số
logSaver ILogSaver

setUpdatedBáo cáo

public void setUpdatedReporting (boolean updatedReporting)

Đặt báo cáo mới.

Thông số
updatedReporting boolean

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

public void testAssumptionFailure (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

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

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Thông số
test TestDescription

failure FailureDescription

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

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

Thông số
test TestDescription

endTime long

testMetrics

thử nghiệm thất bại

public void testFailed (TestDescription test, 
                FailureDescription failure)

Thông số
test TestDescription

failure FailureDescription

thử nghiệm thất bại

public void testFailed (TestDescription test, 
                String trace)

Thông số
test TestDescription

trace String

kiểm traBỏ qua

public void testIgnored (TestDescription test)

Thông số
test TestDescription

nhật ký kiểm tra

public void testLog (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream)

Thông số
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogĐã lưu

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

Thông số
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuleĐã kết thúc

public void testModuleEnded ()

testModuleBắt đầu

public void testModuleStarted (IInvocationContext moduleContext)

Thông số
moduleContext IInvocationContext

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

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Thông số
elapsedTime long

runMetrics

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

public void testRunFailed (FailureDescription failure)

Thông số
failure FailureDescription

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

public void testRunFailed (String errorMessage)

Thông số
errorMessage String

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

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

Thông số
name String

testCount int

attemptNumber int

startTime long

thử nghiệmBắt đầu

public void testStarted (TestDescription test, 
                long startTime)

Thông số
test TestDescription

startTime long

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

nhận được Nhật ký sự kiện

protected File[] getEventsLogs ()

Trả lại
File[]