LogcatCrashResultForwarder

public class LogcatCrashResultForwarder
extends ResultForwarder

java.lang.Object
   ↳ com.android.tradefed.result.ResultForwarder
     ↳ com.android.tradefed.result.LogcatCrashResultForwarder


Özel dinleyici: Hatalarda (enstrümantasyon sürecinin kilitlenmesi) kilitlenmeyi logcat'ten çıkarmaya çalışır ve bunu testle ilişkili hata mesajına ekler.

Özet

Sabitler

String ERROR_MESSAGE

Cihaz tarafında bir sorun oluştuğunda enstrümantasyondan gelen özel hata mesajı.

String INCOMPLETE_MESSAGE

int MAX_NUMBER_CRASH

String SYSTEM_CRASH_MESSAGE

Fields'ın oynadığı filmler

public static final TIMEOUT_MESSAGES

Herkese açık oluşturucular

LogcatCrashResultForwarder(ITestDevice device, ITestInvocationListener... listeners)

Herkese açık yöntemler

ITestDevice getDevice()
void setPackageName(String packageName)
void testEnded(TestDescription test, long endTime, testMetrics)

Bitiş zamanını doğrudan belirtebileceğimiz ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)) öğesinin alternatifi.

void testFailed(TestDescription test, FailureDescription failure)

Tek bir test durumunun başarısız olduğunu bildirir.

void testFailed(TestDescription test, String trace)

Tek bir test durumunun başarısız olduğunu bildirir.

void testRunEnded(long elapsedTime, runMetrics)

Test çalıştırmasının sonunu bildirir.

void testRunFailed(FailureDescription error)

Raporlar, FailureDescription tarafından açıklanan bir hata nedeniyle test çalıştırmasını tamamlayamadı.

void testRunFailed(String errorMessage)

Raporlar test çalıştırması, ölümcül bir hata nedeniyle tamamlanamadı.

void testStarted(TestDescription test, long startTime)

Testin ne zaman başlatıldığını da belirttiğimiz testStarted(com.android.tradefed.result.TestDescription) yerine, doğru ölçüm için ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) ile birlikte kullanılır.

Sabitler

ERROR_MESSAGE

public static final String ERROR_MESSAGE

Cihaz tarafında bir sorun oluştuğunda enstrümantasyondan gelen özel hata mesajı.

Sabit Değer: "İşlem çöktü."

INCOMPLETE_MESSAGE

public static final String INCOMPLETE_MESSAGE

Sabit Değer: "Test çalıştırması tamamlanamadı"

MAX_NUMBER_CRASH

public static final int MAX_NUMBER_CRASH

Sabit Değer: 3 (0x00000003)

SYSTEM_CRASH_MESSAGE

public static final String SYSTEM_CRASH_MESSAGE

Sabit Değer: "Sistem çöktü."

Fields'ın oynadığı filmler

TIMEOUT_MESSAGES

public static final  TIMEOUT_MESSAGES

Herkese açık oluşturucular

LogcatCrashResultForwarder

public LogcatCrashResultForwarder (ITestDevice device, 
                ITestInvocationListener... listeners)

Parametreler
device ITestDevice

listeners ITestInvocationListener

Herkese açık yöntemler

getDevice

public ITestDevice getDevice ()

İlerlemeler
ITestDevice

setPackageName

public void setPackageName (String packageName)

Parametreler
packageName String

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

Bitiş zamanını doğrudan belirtebileceğimiz ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)) öğesinin alternatifi. Doğru ölçüm için testStarted(com.android.tradefed.result.TestDescription, long) ile birlikte kullanın.

Parametreler
test TestDescription: Testi tanımlar.

endTime long: Testin sona erdiği zaman (System.currentTimeMillis() üzerinden ölçülür)

testMetrics : yayınlanan metriklerin ERROR(/Map)

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Tek bir test durumunun başarısız olduğunu bildirir.

testStarted ve testEnded arasında çağrılır.

Parametreler
test TestDescription: Testi tanımlar.

failure FailureDescription: FailureDescription arızayı ve bağlamını açıklayın.

testFailed

public void testFailed (TestDescription test, 
                String trace)

Tek bir test durumunun başarısız olduğunu bildirir.

testStarted ve testEnded arasında çağrılır.

Parametreler
test TestDescription: Testi tanımlar.

trace String: Hatayla sonuçlanan yığın izleme

testRunEnded

public void testRunEnded (long elapsedTime, 
                 runMetrics)

Test çalıştırmasının sonunu bildirir.

Parametreler
elapsedTime long: Cihazın bildirdiği geçen süre (milisaniye cinsinden)

runMetrics : Test çalıştırmasının sonunda bildirilen anahtar/değer çiftleri

testRunFailed

public void testRunFailed (FailureDescription error)

Raporlar, FailureDescription tarafından açıklanan bir hata nedeniyle test çalıştırmasını tamamlayamadı.

Parametreler
error FailureDescription: FailureDescription arızayı ve bağlamını açıklayın.

testRunFailed

public void testRunFailed (String errorMessage)

Raporlar test çalıştırması, ölümcül bir hata nedeniyle tamamlanamadı.

Parametreler
errorMessage String: Çalıştırma hatasının nedenini açıklayan String.

testStarted

public void testStarted (TestDescription test, 
                long startTime)

Testin ne zaman başlatıldığını da belirttiğimiz testStarted(com.android.tradefed.result.TestDescription) yerine, doğru ölçüm için ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) ile birlikte kullanılır.

Parametreler
test TestDescription: Testi tanımlar.

startTime long: Testin başladığı zaman (System.currentTimeMillis() üzerinden ölçülür)