LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.result.LogcatCrashResultForwarder


Écouteur spécial: en cas d'échec (plantage du processus d'instrumentation), il tentera d'extraire Logcat et l'ajoute au message d'échec associé au test.

Résumé

Constantes

int MAX_NUMBER_CRASH

Champs

public static final String ERROR_MESSAGE

Message d'erreur spécial de l'instrumentation en cas de problème côté appareil.

public static final String INCOMPLETE_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

public static final TIMEOUT_MESSAGES

Constructeurs publics

LogcatCrashResultForwarder(ITestDevice device, ITestInvocationListener... listeners)

Méthodes publiques

ITestDevice getDevice()
void testEnded(TestDescription test, long endTime, testMetrics)

void testFailed(TestDescription test, FailureDescription failure)

void testFailed(TestDescription test, String trace)

void testRunEnded(long elapsedTime, runMetrics)

void testRunFailed(FailureDescription error)

void testRunFailed(String errorMessage)

void testStarted(TestDescription test, long startTime)

Constantes

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Valeur constante: 3. (0x00000003)

Champs

MESSAGE_ERREUR

public static final String ERROR_MESSAGE

Message d'erreur spécial de l'instrumentation en cas de problème côté appareil.

MESSAGE_INCOMPLET

public static final String INCOMPLETE_MESSAGE

SYSTEM_CRASH_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

TIMEOUT_MESSAGES

public static final  TIMEOUT_MESSAGES

Constructeurs publics

LogcatCrashResultForwarder

public LogcatCrashResultForwarder (ITestDevice device, 
                ITestInvocationListener... listeners)

Paramètres
device ITestDevice

listeners ITestInvocationListener

Méthodes publiques

getDevice

public ITestDevice getDevice ()

Renvoie
ITestDevice

Terminé

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Paramètres
test TestDescription

endTime long

testMetrics

Échec du test

public void testFailed (TestDescription test, 
                FailureDescription failure)

Paramètres
test TestDescription

failure FailureDescription

Échec du test

public void testFailed (TestDescription test, 
                String trace)

Paramètres
test TestDescription

trace String

TestRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Paramètres
elapsedTime long

runMetrics

TestRunFailed

public void testRunFailed (FailureDescription error)

Paramètres
error FailureDescription

TestRunFailed

public void testRunFailed (String errorMessage)

Paramètres
errorMessage String

Démarrage du test démarré

public void testStarted (TestDescription test, 
                long startTime)

Paramètres
test TestDescription

startTime long