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)

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)

الطرق المحمية

TestListener getJUnitListener()

وظائف الإنشاء العامة

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

المعلمات
junitListener TestListener

الطرق العامة

getSummary

public TestSummary getSummary ()

المرتجعات
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

المعلمات
elapsedTime long

invocationFailed

public void invocationFailed (Throwable cause)

المعلمات
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

المعلمات
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

المعلمات
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

المعلمات
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription testId, 
                String trace)

المعلمات
testId TestDescription

trace String

testIgnored

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

testStarted

public void testStarted (TestDescription test)

المعلمات
test TestDescription

الطرق المحمية

getJUnitListener

protected TestListener getJUnitListener ()

المرتجعات
TestListener