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

SubprosesResultsReporter

public class SubprocessResultsReporter
extends Object implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults

java.lang.Object
com.android.tradefed.result.SubprocessResultsReporter


Mengimplementasikan ITestInvocationListener akan ditentukan sebagai result_reporter dan maju dari sub proses yang hasil tes, tes berjalan, doa tes.

Ringkasan

Konstruktor publik

SubprocessResultsReporter ()

Metode publik

void close ()

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void logAssociation (String dataName, LogFile logFile)

void printEvent (String key, Object event)

Pembantu untuk mencetak kunci acara dan kemudian objek json.

void setOutputTestLog (boolean outputTestLog)

Menyetel apakah kita harus menampilkan pengujian yang dicatat atau tidak.

boolean supportGranularResults ()
void testAssumptionFailure (TestDescription testId, String trace)

void testAssumptionFailure (TestDescription testId, FailureDescription failure)

void testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics)

void testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics)

void testFailed (TestDescription testId, FailureDescription failure)

void testFailed (TestDescription testId, String reason)

void testIgnored (TestDescription testId)

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

void testModuleEnded ()

void testModuleStarted (IInvocationContext moduleContext)

void testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String reason)

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

void testRunStarted (String runName, int testCount)

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

void testRunStopped (long arg0)

void testStarted (TestDescription testId, long startTime)

void testStarted (TestDescription testId)

Konstruktor publik

SubprosesResultsReporter

public SubprocessResultsReporter ()

Metode publik

Menutup

public void close ()

dapatkanRingkasan

public TestSummary getSummary ()

Kembali
TestSummary

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

cetakAcara

public void printEvent (String key, 
                Object event)

Pembantu untuk mencetak kunci acara dan kemudian objek json.

Parameter
key String

event Object

setOutputTestLog

public void setOutputTestLog (boolean outputTestLog)

Menyetel apakah kita harus menampilkan pengujian yang dicatat atau tidak.

Parameter
outputTestLog boolean

dukunganGranularResults

public boolean supportGranularResults ()

Kembali
boolean

tesAsumsiKegagalan

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Parameter
testId TestDescription

trace String

tesAsumsiKegagalan

public void testAssumptionFailure (TestDescription testId, 
                FailureDescription failure)

Parameter
testId TestDescription

failure FailureDescription

tesBerakhir

public void testEnded (TestDescription testId, 
                long endTime, 
                 metrics)

Parameter
testId TestDescription

endTime long

metrics

tesBerakhir

public void testEnded (TestDescription testId, 
                 metrics)

Parameter
testId TestDescription

metrics

tesGagal

public void testFailed (TestDescription testId, 
                FailureDescription failure)

Parameter
testId TestDescription

failure FailureDescription

tesGagal

public void testFailed (TestDescription testId, 
                String reason)

Parameter
testId TestDescription

reason String

tesDiabaikan

public void testIgnored (TestDescription testId)

Parameter
testId TestDescription

tesLog

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuledEnd

public void testModuleEnded ()

testModuleDimulai

public void testModuleStarted (IInvocationContext moduleContext)

Parameter
moduleContext IInvocationContext

testRunEnd

public void testRunEnded (long time, 
                 runMetrics)

Parameter
time long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public void testRunFailed (String reason)

Parameter
reason String

testRunMulai

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

Parameter
runName String

testCount int

attemptNumber int

testRunMulai

public void testRunStarted (String runName, 
                int testCount)

Parameter
runName String

testCount int

testRunMulai

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

Parameter
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long arg0)

Parameter
arg0 long

tesMulai

public void testStarted (TestDescription testId, 
                long startTime)

Parameter
testId TestDescription

startTime long

tesMulai

public void testStarted (TestDescription testId)

Parameter
testId TestDescription