TestSuiteInfo

public class TestSuiteInfo
extends Object

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.TestSuiteInfo


A class that resolves loading of build related metadata for test suite

To properly expose related info, a test suite must include a test-suite-info.properties file in its jar resources

Summary

Public methods

boolean didLoadFromProperties()

Returns true if the values were loaded from a property file, false otherwise.

String get(String name)

Retrieves test information keyed with the provided name.

String getBuildNumber()

Gets the build number of the test suite

String getFullName()

Gets the full name of the test suite

static TestSuiteInfo getInstance()

Retrieves the singleton instance, which also triggers loading of the related test suite info from embedded resource files

String getName()

Gets the short name of the test suite

getTargetArchs()

Gets the target archs supported by the test suite

String getVersion()

Gets the version name of the test suite

Protected methods

Properties loadSuiteInfo(InputStream is)

Performs the actual loading of properties

Public methods

didLoadFromProperties

public boolean didLoadFromProperties ()

Returns true if the values were loaded from a property file, false otherwise.

Returns
boolean

get

public String get (String name)

Retrieves test information keyed with the provided name. Or null if not property associated.

Parameters
name String

Returns
String

getBuildNumber

public String getBuildNumber ()

Gets the build number of the test suite

Returns
String

getFullName

public String getFullName ()

Gets the full name of the test suite

Returns
String

getInstance

public static TestSuiteInfo getInstance ()

Retrieves the singleton instance, which also triggers loading of the related test suite info from embedded resource files

Returns
TestSuiteInfo

getName

public String getName ()

Gets the short name of the test suite

Returns
String

getTargetArchs

public  getTargetArchs ()

Gets the target archs supported by the test suite

Returns

getVersion

public String getVersion ()

Gets the version name of the test suite

Returns
String

Protected methods

loadSuiteInfo

protected Properties loadSuiteInfo (InputStream is)

Performs the actual loading of properties

Parameters
is InputStream

Returns
Properties