การร้องขอToJUnitResultForwarder

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) 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) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test)

วิธีการที่ได้รับการป้องกัน

TestListener getJUnitListener ()

ผู้รับเหมาก่อสร้างสาธารณะ

การร้องขอToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

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

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

รับสรุป

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

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

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

ทดสอบ RunStarted

public void testRunStarted (String runName, 
                int testCount)

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

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

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

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

public void testStarted (TestDescription test)

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

วิธีการที่ได้รับการป้องกัน

getJUnitListener

protected TestListener getJUnitListener ()

การส่งคืน
TestListener