InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

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


Một lớp theo dõi các sự kiện ITestInvocationListener và chuyển tiếp các sự kiện đó đến TestListener.

Tóm tắt

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

InvocationToJUnitResultForwarder(TestListener junitListener)

Phương thức 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)

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)

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

TestListener getJUnitListener()

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

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Tham số
junitListener TestListener

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 (Throwable cause)

Tham số
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Tham số
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Tham số
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Tham số
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription testId, 
                String trace)

Tham số
testId TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Tham số
test TestDescription

testLog

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

Tham số
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Tham số
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

Tham số
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Tham số
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

Tham số
elapsedTime long

testStarted

public void testStarted (TestDescription test)

Tham số
test TestDescription

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

getJUnitListener

protected TestListener getJUnitListener ()

Giá trị trả về
TestListener