ArtTest
public
class
ArtTest
extends Object
implements
IRemoteTest,
IShardableTest
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.ArtTest |
摘要
字段 | |
|---|---|
protected
|
mExecutedTestNames
|
protected
File |
mRunnerDir
|
protected
int |
mShardCount
|
protected
int |
mShardIndex
|
protected
TestInformation |
mTestInfo
|
protected
|
mTests
|
公共构造函数 | |
|---|---|
ArtTest()
|
|
公共方法 | |
|---|---|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
运行测试,并将结果报告给监听器。 |
|
split(int shardCount)
|
字段
mExecutedTestNames
protectedmExecutedTestNames
mRunnerDir
protected File mRunnerDir
mShardCount
protected int mShardCount
mShardIndex
protected int mShardIndex
mTests
protectedmTests
公共构造函数
ArtTest
public ArtTest ()
公共方法
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试,并将结果报告给监听器。
| 参数 | |
|---|---|
testInfo |
TestInformation:包含用于运行测试的实用信息的 TestInformation 对象。 |
listener |
ITestInvocationListener:测试结果的 ITestInvocationListener |
| 抛出 | |
|---|---|
DeviceNotAvailableException |
|
分解
publicsplit (int shardCount)
split() 的替代版本,还提供尝试运行的 shardCount。这对于有时无法任意决定的某些测试运行程序非常有用。
| 参数 | |
|---|---|
shardCount |
int:尝试的分片数量。 |
| 返回 | |
|---|---|
|
要单独执行的子测试集合,如果测试目前不可分片,则为 null |