Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 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


Dinleyici, sonuçların listesini toplamak için her modülün her IRemoteTest eklenir.

Özet

Kamu inşaatçılar

ModuleListener (ITestInvocationListener listener)

Yapıcı.

Kamu yöntemleri

boolean hasLastAttemptFailed ()

Dinleyicinin son yeniden deneme oturumunun başarısız olup olmadığını döndürür.

void logAssociation (String dataName, LogFile logFile)

void setCollectTestsOnly (boolean collectTestsOnly)

Sadece testleri toplayıp toplamadığımızı belirler.

void setMarkTestsSkipped (boolean skip)

Atlanan tüm test senaryolarının işaretlenip işaretlenmeyeceğ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 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)

Kamu inşaatçılar

ModuleListener

public ModuleListener (ITestInvocationListener listener)

Yapıcı.

Parametreler
listener ITestInvocationListener

Genel yöntemler

hasLastAttemptFailed

public boolean hasLastAttemptFailed ()

Dinleyicinin son yeniden deneme oturumunun başarısız olup olmadığını döndürür.

İadeler
boolean

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

Parametreler
dataName String

logFile LogFile

setCollectTestsOnly

public void setCollectTestsOnly (boolean collectTestsOnly)

Sadece testleri toplayıp toplamadığımızı belirler.

Parametreler
collectTestsOnly boolean

setMarkTestsSkipped

public void setMarkTestsSkipped (boolean skip)

Atlanan tüm test senaryolarının işaretlenip işaretlenmeyeceği.

Parametreler
skip boolean

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parametreler
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Parametreler
test TestDescription

failure FailureDescription

testEnded

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

Parametreler
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parametreler
test TestDescription

testMetrics

test başarısız

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parametreler
test TestDescription

failure FailureDescription

test başarısız

public void testFailed (TestDescription test, 
                String trace)

Parametreler
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Parametreler
test TestDescription

testLog

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

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

Parametreler
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametreler
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parametreler
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parametreler
errorMessage String

testRunStarted

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

Parametreler
name String

numTests int

attemptNumber int

testRunStarted

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

Parametreler
name String

numTests int

attemptNumber int

startTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Parametreler
test TestDescription

startTime long