เหตุการณ์ LoggerListener

public class EventsLoggerListener
extends Object implements ILogSaverListener

java.lang.Object
com.android.tradefed.result.EventsLoggerListener


Listener ที่บันทึกเหตุการณ์ทั้งหมดที่ได้รับลงในไฟล์

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

EventsLoggerListener (String name)

วิธีการสาธารณะ

File getLoggedEvents ()
void invocationEnded (long elapsedTime)
void invocationFailed (FailureDescription failure)
void invocationStarted (IInvocationContext context)
void logAssociation (String dataName, LogFile logFile)
void testAssumptionFailure (TestDescription test, String trace)
void testAssumptionFailure (TestDescription test, FailureDescription failure)
void testEnded (TestDescription test, long endTime, testMetrics) testEnded (TestDescription test, long endTime, testMetrics)
void testFailed (TestDescription test, FailureDescription failure)
void testFailed (TestDescription test, String trace)
void testIgnored (TestDescription test)
void testModuleEnded ()
void testModuleStarted (IInvocationContext moduleContext)
void testRunEnded (long elapsedTimeMillis, runMetrics) testRunEnded (long elapsedTimeMillis, runMetrics)
void testRunFailed (FailureDescription failure)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount, int attemptNumber, long startTime)
void testStarted (TestDescription test, long startTime)

ผู้รับเหมาก่อสร้างสาธารณะ

เหตุการณ์ LoggerListener

public EventsLoggerListener (String name)

พารามิเตอร์
name String

วิธีการสาธารณะ

getLoggedEvents

public File getLoggedEvents ()

การส่งคืน
File

การร้องขอสิ้นสุดแล้ว

public void invocationEnded (long elapsedTime)

พารามิเตอร์
elapsedTime long

การร้องขอล้มเหลว

public void invocationFailed (FailureDescription failure)

พารามิเตอร์
failure FailureDescription

การร้องขอเริ่มต้นแล้ว

public void invocationStarted (IInvocationContext context)

พารามิเตอร์
context IInvocationContext

สมาคมล็อก

public void logAssociation (String dataName, 
                LogFile logFile)

พารามิเตอร์
dataName String

logFile LogFile

ทดสอบความล้มเหลว

public void testAssumptionFailure (TestDescription test, 
                String trace)

พารามิเตอร์
test TestDescription

trace String

ทดสอบความล้มเหลว

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

พารามิเตอร์
test TestDescription

failure FailureDescription

การทดสอบสิ้นสุดแล้ว

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

พารามิเตอร์
test TestDescription

endTime long

testMetrics

การทดสอบล้มเหลว

public void testFailed (TestDescription test, 
                FailureDescription failure)

พารามิเตอร์
test TestDescription

failure FailureDescription

การทดสอบล้มเหลว

public void testFailed (TestDescription test, 
                String trace)

พารามิเตอร์
test TestDescription

trace String

ทดสอบละเว้น

public void testIgnored (TestDescription test)

พารามิเตอร์
test TestDescription

ทดสอบโมดูลสิ้นสุดแล้ว

public void testModuleEnded ()

ทดสอบโมดูลเริ่มต้นแล้ว

public void testModuleStarted (IInvocationContext moduleContext)

พารามิเตอร์
moduleContext IInvocationContext

ทดสอบรันสิ้นสุดแล้ว

public void testRunEnded (long elapsedTimeMillis, 
                 runMetrics)

พารามิเตอร์
elapsedTimeMillis long

runMetrics

testRunFailed

public void testRunFailed (FailureDescription failure)

พารามิเตอร์
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

พารามิเตอร์
errorMessage String

ทดสอบ RunStarted

public void testRunStarted (String runName, 
                int testCount, 
                int attemptNumber, 
                long startTime)

พารามิเตอร์
runName String

testCount int

attemptNumber int

startTime long

ทดสอบเริ่มต้นแล้ว

public void testStarted (TestDescription test, 
                long startTime)

พารามิเตอร์
test TestDescription

startTime long