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 tente d'extraire du logcat le plantage 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,
|
void
|
testFailed(TestDescription test, FailureDescription failure)
|
void
|
testFailed(TestDescription test, String trace)
|
void
|
testRunEnded(long elapsedTime,
|
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
ERROR_MESSAGE
public static final String ERROR_MESSAGE
Message d'erreur spécial de l'instrumentation en cas de problème côté appareil.
INCOMPLETE_MESSAGE
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
TIMEOUT_MESSAGES
public static finalTIMEOUT_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 |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
Paramètres | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
Paramètres | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
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 |
testStarted
public void testStarted (TestDescription test, long startTime)
Paramètres | |
---|---|
test |
TestDescription |
startTime |
long |