מעביר תוצאות

public class ResultForwarder
extends Object implements ITestInvocationListener

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


ITestInvocationListener המעביר את תוצאות ההתקשרות לרשימה של מאזינים אחרים.

סיכום

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

ResultForwarder ( listeners) ResultForwarder ( listeners)

צור ResultForwarder .

ResultForwarder (ITestInvocationListener... listeners)

בונה arg משתנה חלופי עבור ResultForwarder .

קונסטרוקטורים מוגנים

ResultForwarder ()

צור ResultForwarder עם הגדרת מאזין דחוי.

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

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

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 testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

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 elapsedTime)

void testStarted (TestDescription test, long startTime)

void testStarted (TestDescription test)

שיטות מוגנות

getListeners ()

קבלו את רשימת המאזינים.

void setListeners ( listeners) setListeners ( listeners)

הגדר את המאזינים לאחר הבנייה.

void setListeners (ITestInvocationListener... listeners)

הגדר את המאזינים לאחר הבנייה.

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

מעביר תוצאות

public ResultForwarder ( listeners)

צור ResultForwarder .

פרמטרים
listeners : ה- ITestInvocationListener האמיתי להעביר תוצאות אליהם

מעביר תוצאות

public ResultForwarder (ITestInvocationListener... listeners)

בונה arg משתנה חלופי עבור ResultForwarder .

פרמטרים
listeners ITestInvocationListener : ה- ITestInvocationListener האמיתי להעביר אליו תוצאות

קונסטרוקטורים מוגנים

מעביר תוצאות

protected ResultForwarder ()

צור ResultForwarder עם הגדרת מאזין דחוי. מיועד רק לשימוש על ידי תת מחלקות.

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

getSummary

public TestSummary getSummary ()

החזרות
TestSummary

הקריאה הסתיימה

public void invocationEnded (long elapsedTime)

פרמטרים
elapsedTime long

הפניה נכשלה

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

הפניה נכשלה

public void invocationFailed (Throwable cause)

פרמטרים
cause Throwable

התראה התחילה

public void invocationStarted (IInvocationContext context)

פרמטרים
context IInvocationContext

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

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

פרמטרים
moduleContext IInvocationContext

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 runName, 
                int testCount, 
                int attemptNumber)

פרמטרים
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

פרמטרים
runName String

testCount int

testRunStarted

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

פרמטרים
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long elapsedTime)

פרמטרים
elapsedTime long

הבדיקה התחילה

public void testStarted (TestDescription test, 
                long startTime)

פרמטרים
test TestDescription

startTime long

הבדיקה התחילה

public void testStarted (TestDescription test)

פרמטרים
test TestDescription

שיטות מוגנות

getListeners

protected  getListeners ()

קבלו את רשימת המאזינים. מיועד רק לשימוש על ידי תת מחלקות.

החזרות
הרשימה של ITestInvocationListener s.

setListeners

protected void setListeners ( listeners)

הגדר את המאזינים לאחר הבנייה. מיועד רק לשימוש על ידי תת מחלקות.

פרמטרים
listeners : ה- ITestInvocationListener האמיתי להעביר תוצאות אליהם

setListeners

protected void setListeners (ITestInvocationListener... listeners)

הגדר את המאזינים לאחר הבנייה. מיועד רק לשימוש על ידי תת מחלקות.

פרמטרים
listeners ITestInvocationListener : ה- ITestInvocationListener האמיתי להעביר אליו תוצאות