LogcatCrashResultForwarder
public class LogcatCrashResultForwarder
extends ResultForwarder
Özel dinleyici: arızalarda (enstrümantasyon işleminin çökmesi), logcat'tan çökmeyi çıkarmaya çalışacak ve bunu testle ilişkili arıza mesajına ekleyecektir.
Özet
Sabitler
MAX_NUMBER_CRASH
public static final int MAX_NUMBER_CRASH
Sabit Değer: 3 (0x00000003)
Alanlar
HATA MESAJI
public static final String ERROR_MESSAGE
Cihaz tarafında bir şeyler ters gittiğinde enstrümantasyondan gelen özel hata mesajı.
INCOMPLETE_MESSAGE
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
TIMEOUT_MESSAGES
public static final TIMEOUT_MESSAGES
Kamu inşaatçıları
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device,
ITestInvocationListener... listeners)
Parametreler |
---|
device | ITestDevice |
listeners | ITestInvocationListener |
Genel yöntemler
cihaz al
public ITestDevice getDevice ()
testSonlandı
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametreler |
---|
test | TestDescription |
endTime | long |
testMetrics | |
test başarısız
public void testFailed (TestDescription test,
FailureDescription failure)
Parametreler |
---|
test | TestDescription |
failure | FailureDescription |
test başarısız
public void testFailed (TestDescription test,
String trace)
Parametreler |
---|
test | TestDescription |
trace | String |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
Parametreler |
---|
elapsedTime | long |
runMetrics | |
testRun Başarısız
public void testRunFailed (FailureDescription error)
Parametreler |
---|
error | FailureDescription |
testRun Başarısız
public void testRunFailed (String errorMessage)
Parametreler |
---|
errorMessage | String |
testBaşladı
public void testStarted (TestDescription test,
long startTime)
Parametreler |
---|
test | TestDescription |
startTime | long |