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)
运行测试,并将结果报告给监听器。 |
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 ()
删除当前跟踪的所有包含过滤条件。
run
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 |