PtsBotTest
public
class
PtsBotTest
extends Object
implements
IRemoteTest,
IShardableTest,
ITestFilterReceiver,
ITestLogger
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
Uruchamianie testów PTS-bot. PTS-bot to pełna automatyzacja pakietu Profile Tuning Suite, który jest narzędziem testowym udostępnianym przez standard Bluetooth do przeprowadzania testów certyfikacyjnych hosta Bluetooth (patrz 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(
Dodaje |
void
|
addAllIncludeFilters(
Dodaje |
void
|
addExcludeFilter(String filter)
Dodaje filtr, który określa, które testy mają być wykluczone. |
void
|
addIncludeFilter(String filter)
Dodaje filtr określający, które testy mają być uwzględnione. |
void
|
clearExcludeFilters()
usunąć wszystkie filtry wykluczeń, które są obecnie śledzone; |
void
|
clearIncludeFilters()
Usuń wszystkie filtry uwzględniania, które są obecnie śledzone. |
|
getExcludeFilters()
Zwraca bieżącą |
|
getIncludeFilters()
Zwraca bieżącą wartość |
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 do odbiorcy. |
|
split(int shardCountHint)
Alternatywna wersja |
Konstruktory publiczne
PtsBotTest
public PtsBotTest ()
Metody publiczne
addAllExcludeFilters
public void addAllExcludeFilters (filters)
Dodaje ERROR(/Set) filtrów, które testy mają być wykluczone.
| Parametry | |
|---|---|
filters |
|
addAllIncludeFilters
public void addAllIncludeFilters (filters)
Dodaje ERROR(/Set) filtrów, których testy mają być uwzględnione.
| Parametry | |
|---|---|
filters |
|
addExcludeFilter
public void addExcludeFilter (String filter)
Dodaje filtr, który określa, które testy mają być 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 ()
usunąć wszystkie filtry wykluczeń, które są obecnie śledzone;
clearIncludeFilters
public void clearIncludeFilters ()
Usuń wszystkie filtry uwzględniania, które są obecnie śledzone.
getIncludeFilters
publicgetIncludeFilters ()
Zwraca bieżącą wartość ERROR(/Set) filtrów uwzględniania.
| Zwroty | |
|---|---|
|
|
getSyspropConfiguration
public PtsBotTest.TestSyspropConfiguration getSyspropConfiguration ()
| Zwroty | |
|---|---|
PtsBotTest.TestSyspropConfiguration |
|
getTestFlagConfiguration
public PtsBotTest.TestFlagConfiguration getTestFlagConfiguration ()
| Zwroty | |
|---|---|
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 do odbiorcy.
| Parametry | |
|---|---|
testInfo |
TestInformation: obiekt TestInformation zawierający przydatne informacje do uruchamiania testów. |
listener |
ITestInvocationListener: ITestInvocationListener wyników testu |
| Rzuty | |
|---|---|
DeviceNotAvailableException |
|
podziel
publicsplit (int shardCountHint)
Alternatywna wersja split(), która zawiera również parametr shardCount, który próbuje się uruchomić. Jest to przydatne w przypadku niektórych narzędzi testowych, które czasami nie mogą podejmować arbitralnych decyzji.
| Parametry | |
|---|---|
shardCountHint |
int: liczba prób fragmentacji. |
| Zwroty | |
|---|---|
|
kolekcję testów podrzędnych do wykonania osobno lub null, jeśli test nie jest obecnie podzielony na części; |