मॉड्यूल श्रोता

public class ModuleListener
extends CollectingTestListener

java.lang.ऑब्जेक्ट
com.android.tradefed.result.CollectingTestListener
com.android.tradefed.testtype.suite.ModuleListener


परिणामों की सूची एकत्र करने के लिए श्रोता प्रत्येक मॉड्यूल के प्रत्येक IRemoteTest से जुड़ा हुआ है।

सारांश

सार्वजनिक निर्माणकर्ता

ModuleListener (ITestInvocationListener listener)

निर्माता।

सार्वजनिक तरीके

boolean hasLastAttemptFailed ()

यह बताता है कि श्रोता का अंतिम पुनः प्रयास सत्र विफल हुआ है या नहीं।

void logAssociation (String dataName, LogFile logFile)

void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

सेट करता है कि प्रयास को पृथक के रूप में रिपोर्ट किया जाना चाहिए या नहीं।

void setCollectTestsOnly (boolean collectTestsOnly)

यह निर्धारित करता है कि हम केवल परीक्षण एकत्र कर रहे हैं या नहीं।

void setMarkTestsSkipped (boolean skip)

छोड़े गए सभी परीक्षण मामलों को चिह्नित किया जाए या नहीं।

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)

सार्वजनिक निर्माणकर्ता

मॉड्यूल श्रोता

public ModuleListener (ITestInvocationListener listener)

निर्माता।

पैरामीटर
listener ITestInvocationListener

सार्वजनिक तरीके

अंतिम प्रयास विफल रहा

public boolean hasLastAttemptFailed ()

यह बताता है कि श्रोता का अंतिम पुनः प्रयास सत्र विफल हुआ है या नहीं।

रिटर्न
boolean

लॉगएसोसिएशन

public void logAssociation (String dataName, 
                LogFile logFile)

पैरामीटर
dataName String

logFile LogFile

setAttemptIsolation

public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)

सेट करता है कि प्रयास को पृथक के रूप में रिपोर्ट किया जाना चाहिए या नहीं।

पैरामीटर
isolation CurrentInvocation.IsolationGrade

setCollectTestsOnly

public void setCollectTestsOnly (boolean collectTestsOnly)

यह निर्धारित करता है कि हम केवल परीक्षण एकत्र कर रहे हैं या नहीं।

पैरामीटर
collectTestsOnly boolean

setMarkTestsछोड़ दिया गया

public void setMarkTestsSkipped (boolean skip)

छोड़े गए सभी परीक्षण मामलों को चिह्नित किया जाए या नहीं।

पैरामीटर
skip 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 testEnded (TestDescription test, 
                 testMetrics)

पैरामीटर
test TestDescription

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

परीक्षण लॉग सहेजा गया

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

पैरामीटर
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

पैरामीटर
elapsedTime long

runMetrics

परीक्षण चलाने में विफल

public void testRunFailed (FailureDescription failure)

पैरामीटर
failure FailureDescription

परीक्षण चलाने में विफल

public void testRunFailed (String errorMessage)

पैरामीटर
errorMessage String

testRunStarted

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

पैरामीटर
name String

numTests int

attemptNumber int

testRunStarted

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

पैरामीटर
name String

numTests int

attemptNumber int

startTime long

परीक्षण प्रारंभ

public void testStarted (TestDescription test, 
                long startTime)

पैरामीटर
test TestDescription

startTime long