ConsoleResultReporter

public class ConsoleResultReporter
extends TestResultListener implements ILogSaverListener, ITestInvocationListener

java.lang.Object
com.android.tradefed.result.TestResultListener
com.android.tradefed.result.ConsoleResultReporter


ผู้รายงานผลเพื่อพิมพ์ผลการทดสอบไปยังคอนโซล

พิมพ์การทดสอบแต่ละครั้ง แต่ละกรณีการทดสอบ และการวัดการทดสอบ บันทึกการทดสอบ และตำแหน่งไฟล์ทดสอบ

สรุป

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

ConsoleResultReporter ()

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

void invocationEnded (long elapsedTime)

void invocationStarted (IInvocationContext context)
void logAssociation (String dataName, LogFile logFile)

void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)

void testResult (TestDescription test, TestResult result)
void testRunEnded (long elapsedTimeMillis, metrics) testRunEnded (long elapsedTimeMillis, metrics)
void testRunFailed (FailureDescription failure)
void testRunFailed (String errorMessage)
void testRunStarted (String runName, int testCount)

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

ConsoleResultReporter

public ConsoleResultReporter ()

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

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

public void invocationEnded (long elapsedTime)

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

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

public void invocationStarted (IInvocationContext context)

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

สมาคมล็อก

public void logAssociation (String dataName, 
                LogFile logFile)

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

logFile LogFile

testLogบันทึกไว้

public void testLogSaved (String dataName, 
                LogDataType dataType, 
                InputStreamSource dataStream, 
                LogFile logFile)

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

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

ผลการทดสอบ

public void testResult (TestDescription test, 
                TestResult result)

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

result TestResult

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

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

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

metrics

testRunFailed

public void testRunFailed (FailureDescription failure)

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

testRunFailed

public void testRunFailed (String errorMessage)

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

ทดสอบ RunStarted

public void testRunStarted (String runName, 
                int testCount)

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

testCount int