InvocationToJUnitผลลัพธ์Forwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

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


ชั้นเรียนที่ฟังเหตุการณ์ ITestInvocationListener และส่งต่อไปยัง TestListener

สรุป

ช่างก่อสร้างสาธารณะ

InvocationToJUnitResultForwarder(TestListener junitListener)

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

TestSummary getSummary()

void invocationEnded(long elapsedTime)

void invocationFailed(Throwable cause)

void invocationStarted(IInvocationContext context)

void testAssumptionFailure(TestDescription testId, String trace)
void testEnded(TestDescription test, testMetrics)

void testFailed(TestDescription testId, String trace)

void testIgnored(TestDescription test)
void testLog(String dataName, LogDataType logData, InputStreamSource dataStream)

void testRunEnded(long elapsedTime, runMetrics)

void testRunFailed(String errorMessage)

void testRunStarted(String runName, int testCount)

void testRunStopped(long elapsedTime)

void testStarted(TestDescription test)

วิธีการป้องกัน

TestListener getJUnitListener()

ช่างก่อสร้างสาธารณะ

InvocationToJUnitผลลัพธ์Forwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

พารามิเตอร์
junitListener TestListener

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

getสรุป

public TestSummary getSummary ()

คิกรีเทิร์น
TestSummary

สิ้นสุดการเรียกใช้

public void invocationEnded (long elapsedTime)

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

การเรียกใช้ล้มเหลว

public void invocationFailed (Throwable cause)

พารามิเตอร์
cause Throwable

เริ่มคำขอแล้ว

public void invocationStarted (IInvocationContext context)

พารามิเตอร์
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

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

trace String

สิ้นสุดการทดสอบ

public void testEnded (TestDescription test, 
                 testMetrics)

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

testMetrics

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

public void testFailed (TestDescription testId, 
                String trace)

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

trace String

ละเว้นการทดสอบแล้ว

public void testIgnored (TestDescription test)

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

บันทึกการทดสอบ

public void testLog (String dataName, 
                LogDataType logData, 
                InputStreamSource dataStream)

พารามิเตอร์
dataName String

logData LogDataType

dataStream InputStreamSource

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

public void testRunEnded (long elapsedTime, 
                 runMetrics)

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

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

พารามิเตอร์
errorMessage String

เริ่มการทดสอบแล้ว

public void testRunStarted (String runName, 
                int testCount)

พารามิเตอร์
runName String

testCount int

หยุดการทดสอบแล้ว

public void testRunStopped (long elapsedTime)

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

เริ่มทดสอบแล้ว

public void testStarted (TestDescription test)

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

วิธีการป้องกัน

getJUnitListener

protected TestListener getJUnitListener ()

คิกรีเทิร์น
TestListener