TestSummary

public class TestSummary
extends Object

java.lang.Object
   ↳ com.android.tradefed.result.TestSummary


A class to represent a test summary. Provides a single field for a summary, in addition to a key-value store for more detailed summary. Also provides a place for the summary source to be identified.

Summary

Nested classes

class TestSummary.TypedString

 

Public constructors

TestSummary(String summaryUri)

A convenience constructor that takes the string representation of a URI

TestSummary(TestSummary.TypedString summary)

Public methods

void addKvEntry(String key, String value)
void addKvEntry(String key, TestSummary.TypedString value)
getKvEntries()
String getSource()
TestSummary.TypedString getSummary()
void setSource(String source)

Set the source of the summary, in case a consumer wants to implement a contract with a specific producer

void setSummary(TestSummary.TypedString summary)
void setSummary(String summary)

Public constructors

TestSummary

public TestSummary (String summaryUri)

A convenience constructor that takes the string representation of a URI

Parameters
summaryUri String: A String representing a URI

TestSummary

public TestSummary (TestSummary.TypedString summary)

Parameters
summary TestSummary.TypedString

Public methods

addKvEntry

public void addKvEntry (String key, 
                String value)

Parameters
key String

value String

addKvEntry

public void addKvEntry (String key, 
                TestSummary.TypedString value)

Parameters
key String

value TestSummary.TypedString

getKvEntries

public  getKvEntries ()

Returns

getSource

public String getSource ()

Returns
String

getSummary

public TestSummary.TypedString getSummary ()

Returns
TestSummary.TypedString

setSource

public void setSource (String source)

Set the source of the summary, in case a consumer wants to implement a contract with a specific producer

Parameters
source String: A String containing the fully-qualified Java class name of the source

setSummary

public void setSummary (TestSummary.TypedString summary)

Parameters
summary TestSummary.TypedString

setSummary

public void setSummary (String summary)

Parameters
summary String