LogcatCrashResultForwarder
public
class
LogcatCrashResultForwarder
extends ResultForwarder
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.ResultForwarder | |
| ↳ | com.android.tradefed.result.LogcatCrashResultForwarder | |
Specjalny listener: w przypadku błędów (awarii procesu pomiarowego) próbuje wyodrębnić z logcatu informacje o awarii i dodaje je do komunikatu o błędzie powiązanego z testem.
Podsumowanie
Stałe | |
|---|---|
int |
MAX_NUMBER_CRASH
|
Fieldsem | |
|---|---|
public
static
final
String |
ERROR_MESSAGE
Specjalny komunikat o błędzie z narzędzi, gdy coś pójdzie nie tak po stronie urządzenia. |
public
static
final
String |
INCOMPLETE_MESSAGE
|
public
static
final
String |
SYSTEM_CRASH_MESSAGE
|
public
static
final
|
TIMEOUT_MESSAGES
|
Konstruktory publiczne | |
|---|---|
LogcatCrashResultForwarder(ITestDevice device, ITestInvocationListener... listeners)
|
|
Metody publiczne | |
|---|---|
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)
|
Stałe
MAX_NUMBER_CRASH
public static final int MAX_NUMBER_CRASH
Wartość stała: 3 (0x00000003)
Fieldsem
ERROR_MESSAGE
public static final String ERROR_MESSAGE
Specjalny komunikat o błędzie z narzędzi, gdy coś pójdzie nie tak po stronie urządzenia.
INCOMPLETE_MESSAGE
public static final String INCOMPLETE_MESSAGE
SYSTEM_CRASH_MESSAGE
public static final String SYSTEM_CRASH_MESSAGE
TIMEOUT_MESSAGES
public static finalTIMEOUT_MESSAGES
Konstruktory publiczne
LogcatCrashResultForwarder
public LogcatCrashResultForwarder (ITestDevice device,
ITestInvocationListener... listeners)| Parametry | |
|---|---|
device |
ITestDevice |
listeners |
ITestInvocationListener |
Metody publiczne
getDevice
public ITestDevice getDevice ()
| Zwroty | |
|---|---|
ITestDevice |
|
testEnded
public void testEnded (TestDescription test,
long endTime,
testMetrics)
| Parametry | |
|---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testFailed
public void testFailed (TestDescription test,
FailureDescription failure)
| Parametry | |
|---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test,
String trace)
| Parametry | |
|---|---|
test |
TestDescription |
trace |
String |
testRunEnded
public void testRunEnded (long elapsedTime,
runMetrics)
| Parametry | |
|---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription error)
| Parametry | |
|---|---|
error |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
| Parametry | |
|---|---|
errorMessage |
String |
testStarted
public void testStarted (TestDescription test,
long startTime)
| Parametry | |
|---|---|
test |
TestDescription |
startTime |
long |