ArtTest
public
class
ArtTest
extends Object
implements
IAbiReceiver,
IShardableTest,
ITestFilterReceiver
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.ArtTest |
Podsumowanie
Pola | |
|---|---|
protected
ITestDevice |
mDevice
|
protected
File |
mRunnerDir
|
protected
int |
mShardCount
|
protected
int |
mShardIndex
|
protected
TestInformation |
mTestInfo
|
protected
List<ArtTest.Test> |
mTests
|
Konstruktory publiczne | |
|---|---|
ArtTest()
|
|
Metody publiczne | |
|---|---|
void
|
addAllExcludeFilters(Set<String> filters)
Dodaje |
void
|
addAllIncludeFilters(Set<String> filters)
Dodaje |
void
|
addExcludeFilter(String filter)
Dodaje filtr określający, które testy mają zostać wykluczone. |
void
|
addIncludeFilter(String filter)
Dodaje filtr określający, które testy mają być uwzględnione. |
void
|
clearExcludeFilters()
Usuń wszystkie obecnie śledzone filtry wykluczeń. |
void
|
clearIncludeFilters()
Usuń wszystkie obecnie śledzone filtry uwzględniania. |
IAbi
|
getAbi()
|
Set<String>
|
getExcludeFilters()
Zwraca bieżącą |
Set<String>
|
getIncludeFilters()
Zwraca bieżącą |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki odbiorcy. |
void
|
setAbi(IAbi abi)
|
Collection<IRemoteTest>
|
split(int shardCount)
Alternatywna wersja |
Pola
mRunnerDir
protected File mRunnerDir
mShardCount
protected int mShardCount
mShardIndex
protected int mShardIndex
mTests
protected List<ArtTest.Test> mTests
Konstruktory publiczne
ArtTest
public ArtTest ()
Metody publiczne
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
Dodaje Set filtrów określających, które testy mają zostać wykluczone.
| Parametry | |
|---|---|
filters |
Set |
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
Dodaje Set filtrów, które określają, jakie testy mają być uwzględnione.
| Parametry | |
|---|---|
filters |
Set |
addExcludeFilter
public void addExcludeFilter (String filter)
Dodaje filtr określający, które testy mają zostać wykluczone.
| Parametry | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
Dodaje filtr określający, które testy mają być uwzględnione.
| Parametry | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
Usuń wszystkie obecnie śledzone filtry wykluczeń.
clearIncludeFilters
public void clearIncludeFilters ()
Usuń wszystkie obecnie śledzone filtry uwzględniania.
getExcludeFilters
public Set<String> getExcludeFilters ()
Zwraca bieżącą Set filtrów wykluczeń.
| Zwraca | |
|---|---|
Set<String> |
|
getIncludeFilters
public Set<String> getIncludeFilters ()
Zwraca bieżącą Set filtrów uwzględniania.
| Zwraca | |
|---|---|
Set<String> |
|
home run
public void run (TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki odbiorcy.
| Parametry | |
|---|---|
testInfo |
TestInformation: obiekt TestInformation zawierający przydatne informacje do przeprowadzania testów. |
listener |
ITestInvocationListener: ITestInvocationListener wyników testu |
| Zgłasza | |
|---|---|
DeviceNotAvailableException |
|
podziel
public Collection<IRemoteTest> split (int shardCount)
Alternatywna wersja split(), która podaje też liczbę fragmentów, które mają zostać uruchomione. Jest to przydatne w przypadku niektórych programów do uruchamiania testów, które nie mogą czasami podejmować arbitralnych decyzji.
| Parametry | |
|---|---|
shardCount |
int: liczba fragmentów, których utworzenie zostało podjęte. |
| Zwraca | |
|---|---|
Collection<IRemoteTest> |
zbiór podtestów do wykonania osobno lub null, jeśli test nie jest obecnie podzielony na części. |