Google is committed to advancing racial equity for Black communities. See how.

SuiteResultReporter

public class SuiteResultReporter
extends CollectingTestListener

java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.suite.SuiteResultReporter


Collect test results for an entire suite invocation and output the final results.

Summary

Nested classes

class SuiteResultReporter.ModulePrepTimes

Object holder for the preparation and tear down time of one module. 

Fields

public static final String SUITE_REPORTER_SOURCE

Public constructors

SuiteResultReporter()

Public methods

int getCompleteModules()
long getFailedTests()
getModulesAbi()

Returns a map of modules abi: .

long getPassedTests()
TestSummary getSummary()
int getTotalModules()
long getTotalTests()
void invocationEnded(long elapsedTime)

void invocationStarted(IInvocationContext context)

void testModuleStarted(IInvocationContext moduleContext)

Protected methods

long getCurrentTime()
long getEndTime()

Returns the end time of the invocation.

long getStartTime()

Returns the start time of the invocation.

Fields

SUITE_REPORTER_SOURCE

public static final String SUITE_REPORTER_SOURCE

Public constructors

SuiteResultReporter

public SuiteResultReporter ()

Public methods

getCompleteModules

public int getCompleteModules ()

Returns
int

getFailedTests

public long getFailedTests ()

Returns
long

getModulesAbi

public  getModulesAbi ()

Returns a map of modules abi: .

Returns

getPassedTests

public long getPassedTests ()

Returns
long

getSummary

public TestSummary getSummary ()

Returns
TestSummary

getTotalModules

public int getTotalModules ()

Returns
int

getTotalTests

public long getTotalTests ()

Returns
long

invocationEnded

public void invocationEnded (long elapsedTime)

Parameters
elapsedTime long

invocationStarted

public void invocationStarted (IInvocationContext context)

Parameters
context IInvocationContext

testModuleStarted

public void testModuleStarted (IInvocationContext moduleContext)

Parameters
moduleContext IInvocationContext

Protected methods

getCurrentTime

protected long getCurrentTime ()

Returns
long

getEndTime

protected long getEndTime ()

Returns the end time of the invocation.

Returns
long

getStartTime

protected long getStartTime ()

Returns the start time of the invocation.

Returns
long