Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

ConsoleResultReporter

public class ConsoleResultReporter
extends TestResultListener implements ILogSaverListener, ITestInvocationListener

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


Result reporter untuk mencetak hasil tes ke konsol.

Mencetak setiap pengujian, setiap kasus pengujian, dan metrik pengujian, log pengujian, dan lokasi file pengujian.

Ringkasan

Konstruktor publik

ConsoleResultReporter ()

Metode publik

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)

Konstruktor publik

ConsoleResultReporter

public ConsoleResultReporter ()

Metode publik

doaBerakhir

public void invocationEnded (long elapsedTime)

Parameter
elapsedTime long

doaDimulai

public void invocationStarted (IInvocationContext context)

Parameter
context IInvocationContext

logAsosiasi

public void logAssociation (String dataName, 
                LogFile logFile)

Parameter
dataName String

logFile LogFile

tesLogDisimpan

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

Parameter
dataName String

dataType LogDataType

dataStream InputStreamSource

logFile LogFile

hasil tes

public void testResult (TestDescription test, 
                TestResult result)

Parameter
test TestDescription

result TestResult

testRunEnd

public void testRunEnded (long elapsedTimeMillis, 
                 metrics)

Parameter
elapsedTimeMillis long

metrics

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameter
failure FailureDescription

testRunFailed

public void testRunFailed (String errorMessage)

Parameter
errorMessage String

testRunMulai

public void testRunStarted (String runName, 
                int testCount)

Parameter
runName String

testCount int