Google is committed to advancing racial equity for Black communities. See how.
Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

ModuleListener

public class ModuleListener
extends CollectingTestListener

java.lang.Object
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.testtype.suite.ModuleListener


Pendengar dilampirkan ke setiap IRemoteTest dari setiap modul untuk mengumpulkan daftar hasil.

Ringkasan

Konstruktor publik

ModuleListener (ITestInvocationListener listener)

Pembuat.

Metode publik

boolean hasLastAttemptFailed ()

Menampilkan apakah sesi coba lagi terakhir pendengar gagal atau tidak.

void logAssociation (String dataName, LogFile logFile)

void setCollectTestsOnly (boolean collectTestsOnly)

Menentukan apakah kita hanya mengumpulkan tes atau tidak.

void setMarkTestsSkipped (boolean skip)

Apakah akan menandai atau tidak semua kasus uji dilewati.

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 testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, 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 testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String name, int numTests, int attemptNumber)

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

void testStarted (TestDescription test, long startTime)

Konstruktor publik

ModuleListener

public ModuleListener (ITestInvocationListener listener)

Pembuat.

Parameter
listener ITestInvocationListener

Metode publik

hasLastAttemptFailed

public boolean hasLastAttemptFailed ()

Menampilkan apakah sesi coba lagi terakhir pendengar gagal atau tidak.

Kembali
boolean

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Parameter
dataName String

logFile LogFile

setCollectTestsOnly

public void setCollectTestsOnly (boolean collectTestsOnly)

Menentukan apakah kita hanya mengumpulkan tes atau tidak.

Parameter
collectTestsOnly boolean

setMarkTestsSkipped

public void setMarkTestsSkipped (boolean skip)

Apakah akan menandai atau tidak semua kasus uji dilewati.

Parameter
skip boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testEnded

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

Parameter
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parameter
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameter
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Parameter
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Parameter
test TestDescription

testLog

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testRunEnded

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

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber)

Parameter
name String

numTests int

attemptNumber int

testRunStarted

public void testRunStarted (String name, 
                int numTests, 
                int attemptNumber, 
                long startTime)
.dll

Parameter
name String

numTests int

attemptNumber int

startTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Parameter
test TestDescription

startTime long