Google is committed to advancing racial equity for Black communities. See how.
Questa pagina è stata tradotta dall'API Cloud Translation.
Switch to English

InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

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


Una classe che ascolta ITestInvocationListener eventi ITestInvocationListener e li inoltra a TestListener .

Sommario

Costruttori pubblici

InvocationToJUnitResultForwarder (TestListener junitListener)

Metodi pubblici

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)

Metodi protetti

TestListener getJUnitListener ()

Costruttori pubblici

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Parametri
junitListener TestListener

Metodi pubblici

getSummary

public TestSummary getSummary ()

ritorna
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

Parametri
elapsedTime long

invocationFailed

public void invocationFailed (Throwable cause)

Parametri
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parametri
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Parametri
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parametri
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription testId, 
                String trace)

Parametri
testId TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Parametri
test TestDescription

testLog

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

Parametri
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parametri
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

Parametri
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parametri
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

Parametri
elapsedTime long

testStarted

public void testStarted (TestDescription test)

Parametri
test TestDescription

Metodi protetti

getJUnitListener

protected TestListener getJUnitListener ()

ritorna
TestListener