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

วิธีการสาธารณะ

ทดสอบความล้มเหลว

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

ทดสอบรันสิ้นสุดแล้ว

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