Google is committed to advancing racial equity for Black communities. See how.
Cette page a été traduite par l'API Cloud Translation.
Switch to English

InvocationToJUnitResultForwarder

public class InvocationToJUnitResultForwarder
extends Object implements ITestInvocationListener

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


Une classe qui écoute les événements ITestInvocationListener et les transmet à un TestListener .

Sommaire

Constructeurs publics

InvocationToJUnitResultForwarder (TestListener junitListener)

Méthodes publiques

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)

Méthodes protégées

TestListener getJUnitListener ()

Constructeurs publics

InvocationToJUnitResultForwarder

public InvocationToJUnitResultForwarder (TestListener junitListener)

Paramètres
junitListener TestListener

Méthodes publiques

getSummary

public TestSummary getSummary ()

Retour
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

Paramètres
elapsedTime long

invocationFailed

public void invocationFailed (Throwable cause)

Paramètres
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Paramètres
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription testId, 
                String trace)

Paramètres
testId TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Paramètres
test TestDescription

testMetrics

test échoué

public void testFailed (TestDescription testId, 
                String trace)

Paramètres
testId TestDescription

trace String

testIgnoré

public void testIgnored (TestDescription test)

Paramètres
test TestDescription

testLog

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

Paramètres
dataName String

logData LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Paramètres
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

Paramètres
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Paramètres
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

Paramètres
elapsedTime long

testStarted

public void testStarted (TestDescription test)

Paramètres
test TestDescription

Méthodes protégées

getJUnitListener

protected TestListener getJUnitListener ()

Retour
TestListener