ตัวส่งต่อผลลัพธ์

public class ResultForwarder
extends Object implements ITestInvocationListener

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


ITestInvocationListener ที่ส่งต่อผลลัพธ์การร้องขอไปยังรายการผู้ฟังอื่น ๆ

สรุป

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

ResultForwarder ( listeners) ResultForwarder ( listeners)

สร้าง ResultForwarder

ResultForwarder (ITestInvocationListener... listeners)

ตัวสร้าง arg ตัวแปรสำรองสำหรับ ResultForwarder

ตัวสร้างที่ได้รับการคุ้มครอง

ResultForwarder ()

สร้าง ResultForwarder ด้วยการตั้งค่า Listener ที่เลื่อนออกไป

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

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (FailureDescription failure)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, FailureDescription failure)

void testFailed (TestDescription test, String trace)

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

void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTime, runMetrics) testRunEnded (long elapsedTime, runMetrics)

void testRunFailed (FailureDescription failure)

void testRunFailed (String errorMessage)

void testRunStarted (String runName, int testCount, int attemptNumber)

void testRunStarted (String runName, int testCount)

void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)

void testRunStopped (long elapsedTime)

void testStarted (TestDescription test, long startTime)

void testStarted (TestDescription test)

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

getListeners ()

รับรายชื่อผู้ฟัง

void setListeners ( listeners) setListeners ( listeners)

ตั้งผู้ฟังหลังการก่อสร้าง

void setListeners (ITestInvocationListener... listeners)

ตั้งผู้ฟังหลังการก่อสร้าง

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

ตัวส่งต่อผลลัพธ์

public ResultForwarder ( listeners)

สร้าง ResultForwarder

พารามิเตอร์
listeners : ITestInvocationListener ที่แท้จริงเพื่อส่งต่อผลลัพธ์ไปยัง

ตัวส่งต่อผลลัพธ์

public ResultForwarder (ITestInvocationListener... listeners)

ตัวสร้าง arg ตัวแปรสำรองสำหรับ ResultForwarder

พารามิเตอร์
listeners ITestInvocationListener : ITestInvocationListener ที่แท้จริงในการส่งต่อผลลัพธ์ไปให้

ตัวสร้างที่ได้รับการคุ้มครอง

ตัวส่งต่อผลลัพธ์

protected ResultForwarder ()

สร้าง ResultForwarder ด้วยการตั้งค่า Listener ที่เลื่อนออกไป มีไว้สำหรับการใช้งานโดยคลาสย่อยเท่านั้น

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

รับสรุป

public TestSummary getSummary ()

การส่งคืน
TestSummary

การร้องขอสิ้นสุดแล้ว

public void invocationEnded (long elapsedTime)

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

การร้องขอล้มเหลว

public void invocationFailed (FailureDescription failure)

พารามิเตอร์
failure FailureDescription

การร้องขอล้มเหลว

public void invocationFailed (Throwable cause)

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

การร้องขอเริ่มต้นแล้ว

public void invocationStarted (IInvocationContext context)

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

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

public void testAssumptionFailure (TestDescription test, 
                String trace)

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

trace String

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

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

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

failure FailureDescription

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

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

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

endTime long

testMetrics

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

public void testEnded (TestDescription test, 
                 testMetrics)

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

testMetrics

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

public void testFailed (TestDescription test, 
                FailureDescription failure)

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

failure FailureDescription

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

public void testFailed (TestDescription test, 
                String trace)

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

trace String

ทดสอบละเว้น

public void testIgnored (TestDescription test)

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

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

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

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

dataType LogDataType

dataStream InputStreamSource

ทดสอบโมดูลสิ้นสุดแล้ว

public void testModuleEnded ()

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

public void testModuleStarted (IInvocationContext moduleContext)

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

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

public void testRunEnded (long elapsedTime, 
                 runMetrics)

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

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

พารามิเตอร์
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

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

ทดสอบ RunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber)

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

testCount int

attemptNumber int

ทดสอบ RunStarted

public void testRunStarted (String runName, 
                int testCount)

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

testCount int

ทดสอบ RunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

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

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long elapsedTime)

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

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

public void testStarted (TestDescription test, 
                long startTime)

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

startTime long

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

public void testStarted (TestDescription test)

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

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

getListeners

protected  getListeners ()

รับรายชื่อผู้ฟัง มีไว้สำหรับการใช้งานโดยคลาสย่อยเท่านั้น

การส่งคืน
รายการของ ITestInvocationListener

setListeners

protected void setListeners ( listeners)

ตั้งผู้ฟังหลังการก่อสร้าง มีไว้สำหรับการใช้งานโดยคลาสย่อยเท่านั้น

พารามิเตอร์
listeners : ITestInvocationListener ที่แท้จริงเพื่อส่งต่อผลลัพธ์ไปยัง

setListeners

protected void setListeners (ITestInvocationListener... listeners)

ตั้งผู้ฟังหลังการก่อสร้าง มีไว้สำหรับการใช้งานโดยคลาสย่อยเท่านั้น

พารามิเตอร์
listeners ITestInvocationListener : ITestInvocationListener ที่แท้จริงในการส่งต่อผลลัพธ์ไปให้