Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

Pengumpul Hasil

public class ResultAggregator
extends CollectingTestListener

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


Forwarder khusus yang mengumpulkan hasil saat dibutuhkan, berdasarkan strategi coba lagi yang diambil.

Ringkasan

Konstruktor publik

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

Metode publik

void cleanEventsFiles ()
final void forwardAggregatedInvocationLogs ()

Teruskan semua log tingkat permintaan ke reporter hasil yang tidak mendukung hasil granular.

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)

Menetapkan pelaporan baru.

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)

Metode yang dilindungi

File[] getEventsLogs ()

Konstruktor publik

HasilAggregator

public ResultAggregator ( listeners, 
                RetryStrategy strategy)

Parameter
listeners

strategy RetryStrategy

Metode publik

cleanEventsFiles

public void cleanEventsFiles ()

forwardAggregatedInvocationLogs

public final void forwardAggregatedInvocationLogs ()

Teruskan semua log tingkat permintaan ke reporter hasil yang tidak mendukung hasil granular.

doaBerakhir

public void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

doa gagal

public void invocationFailed (FailureDescription failure)

Parameter
failure FailureDescription

doa gagal

public void invocationFailed (Throwable cause)

Parameter
cause Throwable

doaDimulai

public void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

logAsosiasi

public void logAssociation (String dataName, 
                LogFile logFile)

Parameter
dataName String

logFile LogFile

setLogSaver

public void setLogSaver (ILogSaver logSaver)

Parameter
logSaver ILogSaver

setUpdatedReporting

public void setUpdatedReporting (boolean updatedReporting)

Menetapkan pelaporan baru.

Parameter
updatedReporting boolean

tesAsumsiKegagalan

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

tesAsumsiKegagalan

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

tesBerakhir

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

Parameter
test TestDescription

endTime long

testMetrics

tesGagal

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

tesGagal

public void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

tesDiabaikan

public void testIgnored (TestDescription test)

Parameter
test TestDescription

tesLog

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

tesLogDisimpan

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testModuledEnd

public void testModuleEnded ()

testModuleDimulai

public void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnd

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parameter
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parameter
errorMessage String

testRunMulai

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

Parameter
name String

testCount int

attemptNumber int

startTime long

tesMulai

public void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long

Metode yang dilindungi

getEventsLogs

protected File[] getEventsLogs ()

Kembali
File[]