TestInfo

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)

公用方法

void addImportPaths( paths)
void addOption(TestOption option)
void addSources( sources)
boolean equals(Object o)
boolean getHostOnly()
getImportPaths()
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

TestInfo

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

參數
name String

source String

hostOnly boolean

keywords

公用方法

addImportPaths

public void addImportPaths ( paths)

參數
paths

addOption

public void addOption (TestOption option)

參數
option TestOption

addSources

public void addSources ( sources)

參數
sources

等於

public boolean equals (Object o)

參數
o Object

傳回
boolean

getHostOnly

public boolean getHostOnly ()

傳回
boolean

getImportPaths

public  getImportPaths ()

傳回

getKeywords

public  getKeywords ( ignoreKeywords)

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

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

傳回

getKeywords

public  getKeywords ()

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

傳回

getName

public String getName ()

傳回
String

getNameAndHostOnly

public String getNameAndHostOnly ()

取得 String 代表測試名稱及其主機設定。這樣一來,TestInfo 就能依裝置上的規定名稱進行分組。

傳回
String

getNameOption

public String getNameOption ()

取得 String 代表測試名稱及其選項。

傳回
String

getOptions

public  getOptions ()

傳回

getSources

public  getSources ()

傳回

hashCode

public int hashCode ()

傳回
int

合併

public void merge (TestInfo test)

與其他測試合併。

更新測試選項,讓測試涵蓋兩項測試的最佳範圍。

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

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

toString

public String toString ()

傳回
String