ResultForwarder

public class ResultForwarder
extends Object implements ITestInvocationListener

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


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

סיכום

יוצרים ציבוריים

ResultForwarder( listeners)

יוצרים ResultForwarder.

ResultForwarder(ITestInvocationListener... listeners)

חלופה למבנה ה-constructor של משתנה 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)

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

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)

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

void setListeners(ITestInvocationListener... listeners)

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

יוצרים ציבוריים

ResultForwarder

public ResultForwarder ( listeners)

יוצרים ResultForwarder.

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

ResultForwarder

public ResultForwarder (ITestInvocationListener... listeners)

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

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

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

ResultForwarder

protected ResultForwarder ()

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

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

getSummary

public TestSummary getSummary ()

החזרות
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

פרמטרים
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

פרמטרים
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

פרמטרים
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

פרמטרים
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

פרמטרים
test TestDescription

failure FailureDescription

testEnded

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

פרמטרים
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

פרמטרים
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

פרמטרים
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

testIgnored

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

testStarted

public void testStarted (TestDescription test, 
                long startTime)

פרמטרים
test TestDescription

startTime long

testStarted

public void testStarted (TestDescription test)

פרמטרים
test TestDescription

שיטות מוגנות

getListeners

protected  getListeners ()

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

החזרות
רשימת ה-ITestInvocationListener.

setListeners

protected void setListeners ( listeners)

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

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

setListeners

protected void setListeners (ITestInvocationListener... listeners)

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

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