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)
Runs the tests, and reports result to the 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:嘗試的 Shard 數量。 |
| 傳回 | |
|---|---|
|
要個別執行的子測試集合,或測試目前無法分片時的 null |