LogcatCrashResultForwarder
public class LogcatCrashResultForwarder
extends ResultForwarder
Specjalny listener: w przypadku niepowodzeń (zawieszenie się procesu oprzyrządowania) spróbuje wyodrębnić z logcata awarię i doda ją do komunikatu o niepowodzeniu związanego z testem.
Streszczenie
Stałe
MAX_NUMBER_CRASH
public static final int MAX_NUMBER_CRASH
Stała wartość: 3 (0x00000003)
Pola
KOMUNIKAT O BŁĘDZIE
public static final String ERROR_MESSAGE
Specjalny komunikat o błędzie z oprzyrządowania, gdy coś pójdzie nie tak po stronie urządzenia.
NIEKOMPLETNA_MESSAGE
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
TIMEOUT_MESSAGES
public static final TIMEOUT_MESSAGES
Konstruktorzy publiczni
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device,
ITestInvocationListener... listeners)
Parametry |
---|
device | ITestDevice |
listeners | ITestInvocationListener |
Metody publiczne
pobierzUrządzenie
public ITestDevice getDevice ()
testZakończony
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Parametry |
---|
test | TestDescription |
endTime | long |
testMetrics | |
Test nieudany
public void testFailed (TestDescription test,
FailureDescription failure)
Parametry |
---|
test | TestDescription |
failure | FailureDescription |
Test nieudany
public void testFailed (TestDescription test,
String trace)
Parametry |
---|
test | TestDescription |
trace | String |
TestUruchomionyZakończony
public void testRunEnded (long elapsedTime,
runMetrics)
Parametry |
---|
elapsedTime | long |
runMetrics | |
TestUruchomie się nie powiódł
public void testRunFailed (FailureDescription error)
Parametry |
---|
error | FailureDescription |
TestUruchomie się nie powiódł
public void testRunFailed (String errorMessage)
Parametry |
---|
errorMessage | String |
testRozpoczęty
public void testStarted (TestDescription test,
long startTime)
Parametry |
---|
test | TestDescription |
startTime | long |