Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.
Organiza tus páginas con colecciones Guarda y categoriza el contenido según tus preferencias.

NameMangleListener

public abstract class NameMangleListener
extends Object implements ITestInvocationListener

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


Un oyente proxy para traducir los nombres de métodos, clases y paquetes de prueba a medida que se informan los resultados.

Resumen

Constructores públicos

NameMangleListener (ITestInvocationListener listener)

Métodos públicos

TestSummary getSummary ()

void invocationEnded (long elapsedTime)

void invocationFailed (Throwable cause)

void invocationStarted (IInvocationContext context)

void testAssumptionFailure (TestDescription test, String trace)

void testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics)

void testFailed (TestDescription test, String trace)

void testIgnored (TestDescription test)

void testLog (String dataName, LogDataType dataType, 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étodos protegidos

TestDescription mangleTestId (TestDescription test)

Este método se ejecuta en todos los TestDescription que se pasan a testStarted(com.android.tradefed.result.TestDescription) , testFailed(com.android.tradefed.result.TestDescription, String) y ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) devoluciones de llamada.

String mangleTestRunName (String name)

Este método se ejecuta en todos los nombres de ejecución de prueba que se pasan a la devolución de llamada testRunStarted(String, int) .

Constructores públicos

NameMangleListener

public NameMangleListener (ITestInvocationListener listener)

Parámetros
listener ITestInvocationListener

Métodos públicos

getSummary

public TestSummary getSummary ()

Devoluciones
TestSummary

invocationEnded

public void invocationEnded (long elapsedTime)

Parámetros
elapsedTime long

invocationFailed

public void invocationFailed (Throwable cause)

Parámetros
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parámetros
context IInvocationContext

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

testEnded

public void testEnded (TestDescription test, 
                 testMetrics)

Parámetros
test TestDescription

testMetrics

testFailed

public void testFailed (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

testIgnored

public void testIgnored (TestDescription test)

Parámetros
test TestDescription

testLog

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

Parámetros
dataName String

dataType LogDataType

dataStream InputStreamSource

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parámetros
elapsedTime long

runMetrics

testRunFailed

public void testRunFailed (String errorMessage)

Parámetros
errorMessage String

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parámetros
runName String

testCount int

testRunStopped

public void testRunStopped (long elapsedTime)

Parámetros
elapsedTime long

testStarted

public void testStarted (TestDescription test)

Parámetros
test TestDescription

Métodos protegidos

mangleTestId

protected TestDescription mangleTestId (TestDescription test)

Este método se ejecuta en todos los TestDescription que se pasan a testStarted(com.android.tradefed.result.TestDescription) , testFailed(com.android.tradefed.result.TestDescription, String) y ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, HashMap) devoluciones de llamada. El método debe devolver una TestDescription posiblemente diferente que se pasará al ITestInvocationListener descendente que se especificó durante la construcción.

La implementación debe tener cuidado de no modificar la TestDescription original.

La implementación predeterminada pasa el identificador entrante sin modificar.

Parámetros
test TestDescription

Devoluciones
TestDescription

mangleTestRunName

protected String mangleTestRunName (String name)

Este método se ejecuta en todos los nombres de ejecución de prueba que se pasan a la devolución de llamada testRunStarted(String, int) . El método debe devolver un nombre de ejecución de prueba posiblemente diferente que se pasará al ITestInvocationListener sentido ITestInvocationListener que se especificó durante la construcción.

La implementación debe tener cuidado de no modificar el nombre de ejecución original.

La implementación predeterminada pasa el nombre de la ejecución de prueba entrante sin modificar.

Parámetros
name String

Devoluciones
String