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)
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

บันทึกการทดสอบที่บันทึกไว้

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

เริ่มการทดสอบแล้ว

public void testRunStarted (String runName, 
                int testCount)

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

testCount int