NombreMangleListener

public abstract class NameMangleListener
extends Object implements ITestInvocationListener

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


Un escucha 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

NombreMangleListener

public NameMangleListener (ITestInvocationListener listener)

Parámetros
listener ITestInvocationListener

Métodos públicos

obtener resumen

public TestSummary getSummary ()

Devoluciones
TestSummary

invocaciónFinalizada

public void invocationEnded (long elapsedTime)

Parámetros
elapsedTime long

invocación fallida

public void invocationFailed (Throwable cause)

Parámetros
cause Throwable

invocaciónIniciada

public void invocationStarted (IInvocationContext context)

Parámetros
context IInvocationContext

pruebaSuposiciónFracaso

public void testAssumptionFailure (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

pruebafinalizada

public void testEnded (TestDescription test, 
                 testMetrics)

Parámetros
test TestDescription

testMetrics

prueba fallida

public void testFailed (TestDescription test, 
                String trace)

Parámetros
test TestDescription

trace String

pruebaIgnorado

public void testIgnored (TestDescription test)

Parámetros
test TestDescription

registro de prueba

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

Parámetros
dataName String

dataType LogDataType

dataStream InputStreamSource

pruebaRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Parámetros
elapsedTime long

runMetrics

prueba de ejecución fallida

public void testRunFailed (String errorMessage)

Parámetros
errorMessage String

pruebaRunStarted

public void testRunStarted (String runName, 
                int testCount)

Parámetros
runName String

testCount int

pruebaEjecutarDetenido

public void testRunStopped (long elapsedTime)

Parámetros
elapsedTime long

pruebaIniciada

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 descendente 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