ArtTest
public
class
ArtTest
extends Object
implements
IAbiReceiver,
IShardableTest,
ITestFilterReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.ArtTest |
摘要
欄位 | |
|---|---|
protected
ITestDevice |
mDevice
|
protected
File |
mRunnerDir
|
protected
int |
mShardCount
|
protected
int |
mShardIndex
|
protected
TestInformation |
mTestInfo
|
protected
List<ArtTest.Test> |
mTests
|
公用建構函式 | |
|---|---|
ArtTest()
|
|
公用方法 | |
|---|---|
void
|
addAllExcludeFilters(Set<String> filters)
新增要排除的測試篩選器 |
void
|
addAllIncludeFilters(Set<String> filters)
新增要納入測試的篩選器 |
void
|
addExcludeFilter(String filter)
新增要排除的測試篩選器。 |
void
|
addIncludeFilter(String filter)
新增要納入的測試篩選器。 |
void
|
clearExcludeFilters()
刪除目前追蹤的所有排除篩選器。 |
void
|
clearIncludeFilters()
刪除目前追蹤的所有納入篩選器。 |
IAbi
|
getAbi()
|
Set<String>
|
getExcludeFilters()
傳回排除篩選器的目前 |
Set<String>
|
getIncludeFilters()
傳回包含篩選器的目前 |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
void
|
setAbi(IAbi abi)
|
Collection<IRemoteTest>
|
split(int shardCount)
|
欄位
mRunnerDir
protected File mRunnerDir
mShardCount
protected int mShardCount
mShardIndex
protected int mShardIndex
mTests
protected List<ArtTest.Test> mTests
公用建構函式
ArtTest
public ArtTest ()
公用方法
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
新增要排除的測試篩選器 Set。
| 參數 | |
|---|---|
filters |
Set |
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
新增要納入測試的篩選器Set。
| 參數 | |
|---|---|
filters |
Set |
addExcludeFilter
public void addExcludeFilter (String filter)
新增要排除的測試篩選器。
| 參數 | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
新增要納入的測試篩選條件。
| 參數 | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
刪除目前追蹤的所有排除篩選器。
clearIncludeFilters
public void clearIncludeFilters ()
刪除目前追蹤的所有包含篩選器。
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
執行測試,並向接聽程式回報結果。
| 參數 | |
|---|---|
testInfo |
TestInformation:包含執行測試實用資訊的 TestInformation 物件。 |
listener |
ITestInvocationListener:測試結果的 ITestInvocationListener |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|
拆分
public Collection<IRemoteTest> split (int shardCount)
split() 的替代版本,也會提供嘗試執行的 shardCount。這項功能適用於有時無法任意決定的測試執行器。
| 參數 | |
|---|---|
shardCount |
int:嘗試的分片數量。 |
| 傳回 | |
|---|---|
Collection<IRemoteTest> |
要個別執行的子測試集合,或 null 如果測試目前無法分片 |