LogcatCrashResultForwarder
public
class
LogcatCrashResultForwarder
extends ResultForwarder
java.lang.Object | ||
↳ | com.android.tradefed.result.ResultForwarder | |
↳ | com.android.tradefed.result.LogcatCrashResultForwarder |
Listener especial: em falhas (processo de instrumentação com falha), ele tenta extrair do logcat a falha e a adiciona à mensagem de falha associada ao teste.
Resumo
Constantes | |
---|---|
int |
MAX_NUMBER_CRASH
|
Campos | |
---|---|
public
static
final
String |
ERROR_MESSAGE
Mensagem de erro especial do instrumento quando algo dá errado no dispositivo. |
public
static
final
String |
INCOMPLETE_MESSAGE
|
public
static
final
String |
SYSTEM_CRASH_MESSAGE
|
public
static
final
|
TIMEOUT_MESSAGES
|
Construtores públicos | |
---|---|
LogcatCrashResultForwarder(ITestDevice device, ITestInvocationListener... listeners)
|
Métodos públicos | |
---|---|
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
Valor da constante: 3 (0x00000003)
Campos
ERROR_MESSAGE
public static final String ERROR_MESSAGE
Mensagem de erro especial do instrumento quando algo dá errado no dispositivo.
INCOMPLETE_MESSAGE
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
TIMEOUT_MESSAGES
public static finalTIMEOUT_MESSAGES
Construtores públicos
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device, ITestInvocationListener... listeners)
Parâmetros | |
---|---|
device |
ITestDevice |
listeners |
ITestInvocationListener |
Métodos públicos
getDevice
public ITestDevice getDevice ()
Retorna | |
---|---|
ITestDevice |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
Parâmetros | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
Parâmetros | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test, String trace)
Parâmetros | |
---|---|
test |
TestDescription |
trace |
String |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
Parâmetros | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription error)
Parâmetros | |
---|---|
error |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Parâmetros | |
---|---|
errorMessage |
String |
testStarted
public void testStarted (TestDescription test, long startTime)
Parâmetros | |
---|---|
test |
TestDescription |
startTime |
long |