ตัวรวบรวมผลลัพธ์

public class ResultAggregator
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.การรวบรวมTestListener
com.android.tradefed.retry.ResultAggregator


ผู้ส่งต่อพิเศษที่รวบรวมผลลัพธ์เมื่อจำเป็น โดยอิงตามกลยุทธ์การลองใหม่ที่ได้รับ

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

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

วิธีการสาธารณะ

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

ส่งต่อบันทึกระดับการร้องขอทั้งหมดไปยังผู้รายงานผลลัพธ์ที่ไม่สนับสนุนผลลัพธ์แบบละเอียด

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)

ตั้งค่าการรายงานใหม่

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)

วิธีการที่ได้รับการป้องกัน

File[] getEventsLogs ()

ผู้รับเหมาก่อสร้างสาธารณะ

ตัวรวบรวมผลลัพธ์

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

พารามิเตอร์
listeners

strategy RetryStrategy

วิธีการสาธารณะ

cleanEventsFiles

public void cleanEventsFiles ()

ไปข้างหน้า AggregatedInvocationLogs

public final void forwardAggregatedInvocationLogs ()

ส่งต่อบันทึกระดับการร้องขอทั้งหมดไปยังผู้รายงานผลลัพธ์ที่ไม่สนับสนุนผลลัพธ์แบบละเอียด

การร้องขอสิ้นสุดแล้ว

public void invocationEnded (long elapsedTime)

พารามิเตอร์
elapsedTime long

การร้องขอล้มเหลว

public void invocationFailed (FailureDescription failure)

พารามิเตอร์
failure FailureDescription

การร้องขอล้มเหลว

public void invocationFailed (Throwable cause)

พารามิเตอร์
cause Throwable

การร้องขอเริ่มต้นแล้ว

public void invocationStarted (IInvocationContext context)

พารามิเตอร์
context IInvocationContext

สมาคมล็อก

public void logAssociation (String dataName, 
                LogFile logFile)

พารามิเตอร์
dataName String

logFile LogFile

setLogSaver

public void setLogSaver (ILogSaver logSaver)

พารามิเตอร์
logSaver ILogSaver

setUpdatedReporting

public void setUpdatedReporting (boolean updatedReporting)

ตั้งค่าการรายงานใหม่

พารามิเตอร์
updatedReporting boolean

ทดสอบความล้มเหลว

public void testAssumptionFailure (TestDescription test, 
                String trace)

พารามิเตอร์
test TestDescription

trace String

ทดสอบความล้มเหลว

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

พารามิเตอร์
test TestDescription

failure FailureDescription

การทดสอบสิ้นสุดแล้ว

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

พารามิเตอร์
test TestDescription

endTime long

testMetrics

การทดสอบล้มเหลว

public void testFailed (TestDescription test, 
                FailureDescription failure)

พารามิเตอร์
test TestDescription

failure FailureDescription

การทดสอบล้มเหลว

public void testFailed (TestDescription test, 
                String trace)

พารามิเตอร์
test TestDescription

trace String

ทดสอบละเว้น

public void testIgnored (TestDescription test)

พารามิเตอร์
test TestDescription

บันทึกการทดสอบ

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

พารามิเตอร์
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogบันทึกไว้

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

พารามิเตอร์
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

ทดสอบโมดูลสิ้นสุดแล้ว

public void testModuleEnded ()

ทดสอบโมดูลเริ่มต้นแล้ว

public void testModuleStarted (IInvocationContext moduleContext)

พารามิเตอร์
moduleContext IInvocationContext

ทดสอบรันสิ้นสุดแล้ว

public void testRunEnded (long elapsedTime, 
                 runMetrics)

พารามิเตอร์
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

พารามิเตอร์
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

พารามิเตอร์
errorMessage String

ทดสอบ RunStarted

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

พารามิเตอร์
name String

testCount int

attemptNumber int

startTime long

ทดสอบเริ่มต้นแล้ว

public void testStarted (TestDescription test, 
                long startTime)

พารามิเตอร์
test TestDescription

startTime long

วิธีการที่ได้รับการป้องกัน

getEventsLogs

protected File[] getEventsLogs ()

การส่งคืน
File[]