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

เมธอดสาธารณะ

invocationEnded

public void invocationEnded (long elapsedTime)

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

invocationStarted

public void invocationStarted (IInvocationContext context)

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

logAssociation

public void logAssociation (String dataName, 
                LogFile logFile)

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

logFile LogFile

testLogSaved

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

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

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

testResult

public void testResult (TestDescription test, 
                TestResult result)

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

result TestResult

testRunEnded

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

testRunStarted

public void testRunStarted (String runName, 
                int testCount)

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

testCount int