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

enum TestSummary.Type

 

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, TestSummary.TypedString value)
void addKvEntry(String key, String value)
Map<String, TestSummary.TypedString> 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

TestSummary (String summaryUri)

A convenience constructor that takes the string representation of a URI

Parameters
summaryUri String: A String representing a URI

TestSummary

TestSummary (TestSummary.TypedString summary)

Parameters
summary TestSummary.TypedString

Public methods

addKvEntry

void addKvEntry (String key, 
                TestSummary.TypedString value)

Parameters
key String

value TestSummary.TypedString

addKvEntry

void addKvEntry (String key, 
                String value)

Parameters
key String

value String

getKvEntries

Map<String, TestSummary.TypedString> getKvEntries ()

Returns
Map<String, TestSummary.TypedString>

getSource

String getSource ()

Returns
String

getSummary

TestSummary.TypedString getSummary ()

Returns
TestSummary.TypedString

setSource

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

void setSummary (TestSummary.TypedString summary)

Parameters
summary TestSummary.TypedString

setSummary

void setSummary (String summary)

Parameters
summary String