ITestAnnotationFilterReceiver
public
interface
ITestAnnotationFilterReceiver
| com.android.tradefed.testtype.ITestAnnotationFilterReceiver |
這個執行器可根據註解篩選要執行的測試。
只有在符合一或多個「包含」篩選器,且不符合任何「排除」篩選器時,系統才會執行測試。如未提供任何納入篩選條件,只要測試不符合任何排除篩選條件,就應執行所有測試。
摘要
公用方法 | |
|---|---|
abstract
void
|
addAllExcludeAnnotation(Set<String> notAnnotations)
新增註解的 |
abstract
void
|
addAllIncludeAnnotation(Set<String> annotations)
新增註解 |
abstract
void
|
addExcludeAnnotation(String notAnnotation)
如果測試標示了註解,則會新增註解來排除測試。 |
abstract
void
|
addIncludeAnnotation(String annotation)
新增註解,以便在測試標記時加入。 |
abstract
void
|
clearExcludeAnnotations()
刪除目前追蹤的所有排除註解。 |
abstract
void
|
clearIncludeAnnotations()
刪除目前追蹤的所有 include 註解。 |
abstract
Set<String>
|
getExcludeAnnotations()
傳回要排除的註解目前 |
abstract
Set<String>
|
getIncludeAnnotations()
傳回要納入的註解目前 |
公用方法
addAllExcludeAnnotation
public abstract void addAllExcludeAnnotation (Set<String> notAnnotations)
新增註解的 Set,如果測試標示了註解,就會排除這些註解。
| 參數 | |
|---|---|
notAnnotations |
Set |
addAllIncludeAnnotation
public abstract void addAllIncludeAnnotation (Set<String> annotations)
新增 Set 註解,以便在測試標記時納入。
| 參數 | |
|---|---|
annotations |
Set |
addExcludeAnnotation
public abstract void addExcludeAnnotation (String notAnnotation)
如果測試標示了註解,則新增註解以排除測試。
| 參數 | |
|---|---|
notAnnotation |
String |
addIncludeAnnotation
public abstract void addIncludeAnnotation (String annotation)
新增註解,以便在測試標記時加入。
| 參數 | |
|---|---|
annotation |
String |
clearExcludeAnnotations
public abstract void clearExcludeAnnotations ()
刪除目前追蹤的所有排除註解。
clearIncludeAnnotations
public abstract void clearIncludeAnnotations ()
刪除目前追蹤的所有 include 註解。
getExcludeAnnotations
public abstract Set<String> getExcludeAnnotations ()
傳回要排除的註解目前 Set。
| 傳回 | |
|---|---|
Set<String> |
|
getIncludeAnnotations
public abstract Set<String> getIncludeAnnotations ()
傳回要納入的註解目前 Set。
| 傳回 | |
|---|---|
Set<String> |
|