ModuleListener

public class ModuleListener
extends CollectingTestListener

java.lang.Object
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)

בנאים ציבוריים

ModuleListener

public ModuleListener (ITestInvocationListener listener)

בַּנַאִי.

פרמטרים
listener ITestInvocationListener

שיטות ציבוריות

hasLastAttemptFailed

public boolean hasLastAttemptFailed ()

מחזירה אם הפעלת הניסיון החוזר האחרון של המאזין נכשל או לא.

החזרות
boolean

logAssociation

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

setMarkTestsSkipped

public void setMarkTestsSkipped (boolean skip)

האם לסמן את כל מקרי המבחן שדילג או לא.

פרמטרים
skip boolean

testAssumption Failure

public void testAssumptionFailure (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

testAssumption Failure

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

testLog

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

פרמטרים
dataName String

dataType LogDataType

dataStream InputStreamSource

testLogSaved

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

testRunFailed

public void testRunFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

testRunFailed

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