ITestFilterReceiver

public interface ITestFilterReceiver

com.android.tradefed.testtype.ITestFilterReceiver


可篩選要執行哪些測試的執行程式。

只有在測試符合一或多個包含篩選器,且不符合任何排除篩選器時,才會執行。如果未指定包含篩選條件,只要測試不符合任何排除篩選條件,就應執行所有測試。

篩選器的格式由執行程式定義,結構可能為 <package>、<package>.<class>、<package>.<class>#<method> 或 <native_name>。篩選器甚至可以是正規表示式。

摘要

公用方法

abstract void addAllExcludeFilters( filters)

新增篩選器的 ERROR(/Set),用於排除要排除的測試。

abstract void addAllIncludeFilters( filters)

新增篩選器的 ERROR(/Set),用於指定要納入哪些測試。

abstract void addExcludeFilter(String filter)

新增篩選器,用於排除要排除的測試。

abstract void addIncludeFilter(String filter)

新增篩選器,用於篩選要納入的測試。

abstract void clearExcludeFilters()

刪除目前追蹤的所有排除篩選條件。

abstract void clearIncludeFilters()

刪除目前追蹤的所有包含篩選器。

abstract getExcludeFilters()

傳回排除篩選器的目前 ERROR(/Set)

abstract getIncludeFilters()

傳回目前的包含篩選器 ERROR(/Set)

公用方法

addAllExcludeFilters

public abstract void addAllExcludeFilters ( filters)

新增篩選器的 ERROR(/Set),用於排除要排除的測試。

參數
filters

addAllIncludeFilters

public abstract void addAllIncludeFilters ( filters)

新增篩選器的 ERROR(/Set),用於指定要納入哪些測試。

參數
filters

addExcludeFilter

public abstract void addExcludeFilter (String filter)

新增篩選器,用於排除要排除的測試。

參數
filter String

addIncludeFilter

public abstract void addIncludeFilter (String filter)

新增篩選器,用於篩選要納入的測試。

參數
filter String

clearExcludeFilters

public abstract void clearExcludeFilters ()

刪除目前追蹤的所有排除篩選條件。

clearIncludeFilters

public abstract void clearIncludeFilters ()

刪除目前追蹤的所有包含篩選器。

getExcludeFilters

public abstract  getExcludeFilters ()

傳回排除篩選器的目前 ERROR(/Set)

傳回

getIncludeFilters

public abstract  getIncludeFilters ()

傳回目前的 include 篩選器 ERROR(/Set)

傳回