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)
final void 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)
final void testStarted(TestDescription test, long startTime)
final void testStarted(TestDescription test)

ตัวสร้างแบบสาธารณะ

TestResultListener

public TestResultListener ()

เมธอดสาธารณะ

testAssumptionFailure

public final void testAssumptionFailure (TestDescription test, 
                String trace)

พารามิเตอร์
test TestDescription

trace String

testEnded

public final void testEnded (TestDescription test, 
                 testMetrics)

พารามิเตอร์
test TestDescription

testMetrics

testEnded

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

พารามิเตอร์
test TestDescription

endTime long

testMetrics

testFailed

public final void testFailed (TestDescription test, 
                String trace)

พารามิเตอร์
test TestDescription

trace String

testIgnored

public final void testIgnored (TestDescription test)

พารามิเตอร์
test TestDescription

testResult

public abstract void testResult (TestDescription test, 
                TestResult result)

พารามิเตอร์
test TestDescription

result TestResult

testRunEnded

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

พารามิเตอร์
elapsedTimeMillis long

runMetrics

testStarted

public final void testStarted (TestDescription test, 
                long startTime)

พารามิเตอร์
test TestDescription

startTime long

testStarted

public final void testStarted (TestDescription test)

พารามิเตอร์
test TestDescription