TestResultListener

public abstract class TestResultListener
extends Object implements ITestLifeCycleReceiver

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


פישוט של ITestLifecycleListener עבור מיישמים שאכפת להם רק מתוצאות בדיקה בודדות.

הוא מסנן את אירועי מחזור החיים השונים עד לשיטת testResult.

זה לא בטוח בשרשור - ובמיוחד בהנחה שאירועי ITestLifecycleListener מתקבלים לפי הסדר.

סיכום

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

TestResultListener ()

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

final void testAssumptionFailure (TestDescription test, String trace)
final void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)
final void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)
final void testFailed (TestDescription test, String trace)
final void testIgnored (TestDescription test)
abstract void testResult (TestDescription test, TestResult result)
void testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics)
final void testStarted (TestDescription test, long startTime)
final void testStarted (TestDescription test)

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

TestResultListener

public TestResultListener ()

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

testAssumption Failure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

הבדיקה הסתיים

public final void testEnded (TestDescription test, 
                 testMetrics)

פרמטרים
test TestDescription

testMetrics

הבדיקה הסתיים

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

פרמטרים
test TestDescription

endTime long

testMetrics

מבחן נכשל

public final void testFailed (TestDescription test, 
                String trace)

פרמטרים
test TestDescription

trace String

התעלמו מהבדיקה

public final void testIgnored (TestDescription test)

פרמטרים
test TestDescription

תוצאה של בדיקה

public abstract void testResult (TestDescription test, 
                TestResult result)

פרמטרים
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

פרמטרים
elapsedTimeMillis long

runMetrics

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

public final void testStarted (TestDescription test, 
                long startTime)

פרמטרים
test TestDescription

startTime long

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

public final void testStarted (TestDescription test)

פרמטרים
test TestDescription