InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

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


Một lớp lắng nghe các sự kiện ITestInvocationListener và chuyển tiếp chúng tới TestListener .

Bản tóm tắt

Nhà thầu xây dựng công cộng

InvocationToJUnitResultForwarder (TestListener junitListener)

Phương pháp công khai

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)

Phương pháp được bảo vệ

TestListener getJUnitListener ()

Nhà thầu xây dựng công cộng

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Thông số
junitListener TestListener

Phương pháp công khai

lấyTóm tắt

public TestSummary getSummary ()

Trả lại
TestSummary

lời mờiĐã kết thúc

public void invocationEnded (long elapsedTime)

Thông số
elapsedTime long

lời gọi không thành công

public void invocationFailed (Throwable cause)

Thông số
cause Throwable

lời gọiBắt đầu

public void invocationStarted (IInvocationContext context)

Thông số
context IInvocationContext

kiểm traGiả địnhThất bại

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Thông số
testId TestDescription

trace String

kiểm traĐã kết thúc

public void testEnded (TestDescription test, 
                 testMetrics)

Thông số
test TestDescription

testMetrics

thử nghiệm thất bại

public void testFailed (TestDescription testId, 
                String trace)

Thông số
testId TestDescription

trace String

kiểm traBỏ qua

public void testIgnored (TestDescription test)

Thông số
test TestDescription

nhật ký kiểm tra

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

Thông số
dataName String

logData LogDataType

dataStream InputStreamSource

thử nghiệmChạyĐã kết thúc

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Thông số
elapsedTime long

runMetrics

thử nghiệm Chạy không thành công

public void testRunFailed (String errorMessage)

Thông số
errorMessage String

thử nghiệmChạyBắt đầu

public void testRunStarted (String runName, 
                int testCount)

Thông số
runName String

testCount int

thử nghiệmRunStopped

public void testRunStopped (long elapsedTime)

Thông số
elapsedTime long

thử nghiệmBắt đầu

public void testStarted (TestDescription test)

Thông số
test TestDescription

Phương pháp được bảo vệ

getJUnitListener

protected TestListener getJUnitListener ()

Trả lại
TestListener