InvocationToJUnitResultForwarder

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

سازندگان عمومی

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

مولفه های
junitListener TestListener

روش های عمومی

دریافت خلاصه

public TestSummary getSummary ()

برمی گرداند
TestSummary

فراخوان پایان یافت

public void invocationEnded (long elapsedTime)

مولفه های
elapsedTime long

فراخوان ناموفق بود

public void invocationFailed (Throwable cause)

مولفه های
cause Throwable

invocationStarted

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

testLog

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

مولفه های
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

مولفه های
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

مولفه های
errorMessage String

testRunStarted

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