ResultForwarder

public class ResultForwarder
extends Object implements ITestInvocationListener

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


ITestInvocationListener chuyển tiếp kết quả gọi đến danh sách các trình nghe khác.

Tóm tắt

Hàm khởi tạo công khai

ResultForwarder( listeners)

Tạo ResultForwarder.

ResultForwarder(ITestInvocationListener... listeners)

Hàm khởi tạo arg biến thay thế cho ResultForwarder.

Hàm khởi tạo được bảo vệ

ResultForwarder()

Tạo ResultForwarder bằng chế độ cài đặt trình nghe bị trì hoãn.

Phương thức công khai

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)

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

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)

Phương thức được bảo vệ

getListeners()

Lấy danh sách trình nghe.

void setListeners( listeners)

Đặt trình nghe sau khi tạo.

void setListeners(ITestInvocationListener... listeners)

Đặt trình nghe sau khi tạo.

Hàm khởi tạo công khai

ResultForwarder

public ResultForwarder ( listeners)

Tạo ResultForwarder.

Tham số
listeners : ITestInvocationListener thực tế để chuyển tiếp kết quả đến

ResultForwarder

public ResultForwarder (ITestInvocationListener... listeners)

Hàm khởi tạo arg biến thay thế cho ResultForwarder.

Tham số
listeners ITestInvocationListener: ITestInvocationListener thực tế để chuyển tiếp kết quả đến

Hàm khởi tạo được bảo vệ

ResultForwarder

protected ResultForwarder ()

Tạo ResultForwarder bằng chế độ cài đặt trình nghe bị trì hoãn. Chỉ dành cho các lớp con sử dụng.

Phương thức công khai

getSummary

public TestSummary getSummary ()

Giá trị trả về
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

Tham số
elapsedTime long

invocationFailed

public void invocationFailed (FailureDescription failure)

Tham số
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Tham số
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Tham số
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Tham số
test TestDescription

trace String

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

Tham số
test TestDescription

failure FailureDescription

testEnded

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

Tham số
test TestDescription

endTime long

testMetrics

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Tham số
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Tham số
test TestDescription

failure FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

Tham số
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Tham số
test TestDescription

testLog

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

Tham số
dataName String

dataType LogDataType

dataStream InputStreamSource

testModuleEnded

public void testModuleEnded ()

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Tham số
moduleContext IInvocationContext

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Tham số
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Tham số
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Tham số
errorMessage String

testRunStarted

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

Tham số
runName String

testCount int

attemptNumber int

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Tham số
runName String

testCount int

testRunStarted

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

Tham số
runName String

testCount int

attemptNumber int

startTime long

testRunStopped

public void testRunStopped (long elapsedTime)

Tham số
elapsedTime long

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Tham số
test TestDescription

startTime long

testStarted

public void testStarted (TestDescription test)

Tham số
test TestDescription

Phương thức được bảo vệ

getListeners

protected  getListeners ()

Lấy danh sách trình nghe. Chỉ dành cho các lớp con sử dụng.

Giá trị trả về
Danh sách ITestInvocationListener.

setListeners

protected void setListeners ( listeners)

Đặt trình nghe sau khi tạo. Chỉ dành cho các lớp con sử dụng.

Tham số
listeners : ITestInvocationListener thực tế để chuyển tiếp kết quả đến

setListeners

protected void setListeners (ITestInvocationListener... listeners)

Đặt trình nghe sau khi tạo. Chỉ dành cho các lớp con sử dụng.

Tham số
listeners ITestInvocationListener: ITestInvocationListener thực tế để chuyển tiếp kết quả đến