測試訊息

public class TestInfo
extends Object

java.lang.Object
com.android.tradefed.util.testmapping.TestInfo


將測試資訊集儲存在 TEST_MAPPING 檔案中。

概括

公共構造函數

TestInfo (String name, String source, boolean hostOnly)
TestInfo (String name, String source, boolean hostOnly, keywords) TestInfo (String name, String source, boolean hostOnly, keywords)

公共方法

void addImportPaths ( paths) addImportPaths ( paths)
void addOption ( TestOption option)
void addSources ( sources) addSources ( sources)
boolean equals (Object o)
boolean getHostOnly ()
getImportPaths ()
getKeywords ( ignoreKeywords) getKeywords ( ignoreKeywords)

取得測試支援的關鍵字的ERROR(/Set)

getKeywords ()

取得測試支援的關鍵字的ERROR(/Set)

String getName ()
String getNameAndHostOnly ()

取得一個表示測試名稱及其主機設定的String

String getNameOption ()

取得一個表示測試名稱及其選項的String

getOptions ()
getSources ()
int hashCode ()
void merge ( TestInfo test)

與另一個測試合併。

String toString ()

公共構造函數

測試訊息

public TestInfo (String name, 
                String source, 
                boolean hostOnly)

參數
name String

source String

hostOnly boolean

測試訊息

public TestInfo (String name, 
                String source, 
                boolean hostOnly, 
                 keywords)

參數
name String

source String

hostOnly boolean

keywords

公共方法

新增導入路徑

public void addImportPaths ( paths)

參數
paths

新增選項

public void addOption (TestOption option)

參數
option TestOption

新增來源

public void addSources ( sources)

參數
sources

等於

public boolean equals (Object o)

參數
o Object

退貨
boolean

僅取得主機

public boolean getHostOnly ()

退貨
boolean

取得導入路徑

public  getImportPaths ()

退貨

取得關鍵字

public  getKeywords ( ignoreKeywords)

取得測試支援的關鍵字的ERROR(/Set)

參數
ignoreKeywords :一組要忽略的關鍵字String

退貨

取得關鍵字

public  getKeywords ()

取得測試支援的關鍵字的ERROR(/Set)

退貨

取得名稱

public String getName ()

退貨
String

僅取得名稱和主機

public String getNameAndHostOnly ()

取得一個表示測試名稱及其主機設定的String 。這允許 TestInfos 按裝置上的要求的名稱進行分組。

退貨
String

取得名稱選項

public String getNameOption ()

取得一個表示測試名稱及其選項的String

退貨
String

取得選項

public  getOptions ()

退貨

獲取來源

public  getSources ()

退貨

哈希碼

public int hashCode ()

退貨
int

合併

public void merge (TestInfo test)

與另一個測試合併。

更新測試選項,以便測試具有兩個測試的最佳覆蓋範圍。

TODO(b/113616538):實施更強大的選項合併機制。

參數
test TestInfo :要合併的TestInfo物件。

到字串

public String toString ()

退貨
String