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 |
|
split
public Collection<IRemoteTest> split (int shardCount)
`split()` の代替バージョン。実行しようとした shardCount も提供します。これは、場合によっては任意に決定できないテストランナーに役立ちます。
| パラメータ | |
|---|---|
shardCount |
int: 試行されたシャード数。 |
| 戻り値 | |
|---|---|
Collection<IRemoteTest> |
個別に実行されるサブテストのコレクション。テストが現在シャード化できない場合は null。 |