PtsBotTest
public
class
PtsBotTest
extends Object
implements
IRemoteTest,
IShardableTest,
ITestFilterReceiver,
ITestLogger
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
Przeprowadzanie testów PTS-bot. PTS-bot to w pełni zautomatyzowany pakiet Bluetooth Profile Tuning Suite, który jest narzędziem testowym udostępnianym przez standard Bluetooth do przeprowadzania testów certyfikacyjnych hosta Bluetooth (więcej informacji znajdziesz na stronie https://www.bluetooth.com/develop-with-bluetooth/qualification-listing/qualification-test-tools/profile-tuning-suite/).
Podsumowanie
Zagnieżdżone klasy | |
|---|---|
class |
PtsBotTest.TestFlagConfiguration
|
class |
PtsBotTest.TestSyspropConfiguration
|
Konstruktory publiczne | |
|---|---|
PtsBotTest()
|
|
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. |
Set<String>
|
getExcludeFilters()
Zwraca bieżącą |
Set<String>
|
getIncludeFilters()
Zwraca bieżącą |
PtsBotTest.TestSyspropConfiguration
|
getSyspropConfiguration()
|
PtsBotTest.TestFlagConfiguration
|
getTestFlagConfiguration()
|
void
|
initFlagsConfig(ITestDevice testDevice, File testConfigFile)
|
void
|
initSystemPropertiesConfig(File testConfigFile)
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Przeprowadza testy i przekazuje wyniki odbiorcy. |
Collection<IRemoteTest>
|
split(int shardCountHint)
Alternatywna wersja |
Konstruktory publiczne
PtsBotTest
public PtsBotTest ()
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> |
|
getSyspropConfiguration
public PtsBotTest.TestSyspropConfiguration getSyspropConfiguration ()
| Zwraca | |
|---|---|
PtsBotTest.TestSyspropConfiguration |
|
getTestFlagConfiguration
public PtsBotTest.TestFlagConfiguration getTestFlagConfiguration ()
| Zwraca | |
|---|---|
PtsBotTest.TestFlagConfiguration |
|
initFlagsConfig
public void initFlagsConfig (ITestDevice testDevice, File testConfigFile)
| Parametry | |
|---|---|
testDevice |
ITestDevice |
testConfigFile |
File |
initSystemPropertiesConfig
public void initSystemPropertiesConfig (File testConfigFile)
| Parametry | |
|---|---|
testConfigFile |
File |
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 shardCountHint)
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 | |
|---|---|
shardCountHint |
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. |