PtsBotTest
public
class
PtsBotTest
extends Object
implements
IRemoteTest,
IShardableTest,
ITestFilterReceiver,
ITestLogger
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
Run PTS-bot tests. PTS-bot is a complete automation of the Bluetooth Profile Tuning Suite, which is the testing tool provided by the Bluetooth standard to run Bluetooth Host certification tests (see https://www.bluetooth.com/develop-with-bluetooth/qualification-listing/qualification-test-tools/profile-tuning-suite/).
Summary
Nested classes | |
|---|---|
class |
PtsBotTest.TestFlagConfiguration
|
class |
PtsBotTest.TestSyspropConfiguration
|
Public constructors | |
|---|---|
PtsBotTest()
|
|
Public methods | |
|---|---|
void
|
addAllExcludeFilters(Set<String> filters)
Adds the |
void
|
addAllIncludeFilters(Set<String> filters)
Adds the |
void
|
addExcludeFilter(String filter)
Adds a filter of which tests to exclude. |
void
|
addIncludeFilter(String filter)
Adds a filter of which tests to include. |
void
|
clearExcludeFilters()
Delete all the exclude filters currently tracked. |
void
|
clearIncludeFilters()
Delete all the include filters currently tracked. |
Set<String>
|
getExcludeFilters()
Returns the current |
Set<String>
|
getIncludeFilters()
Returns the current |
PtsBotTest.TestSyspropConfiguration
|
getSyspropConfiguration()
|
PtsBotTest.TestFlagConfiguration
|
getTestFlagConfiguration()
|
void
|
initFlagsConfig(ITestDevice testDevice, File testConfigFile)
|
void
|
initSystemPropertiesConfig(File testConfigFile)
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
Collection<IRemoteTest>
|
split(int shardCountHint)
Alternative version of |
Public constructors
PtsBotTest
public PtsBotTest ()
Public methods
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
Adds the Set of filters of which tests to exclude.
| Parameters | |
|---|---|
filters |
Set |
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
Adds the Set of filters of which tests to include.
| Parameters | |
|---|---|
filters |
Set |
addExcludeFilter
public void addExcludeFilter (String filter)
Adds a filter of which tests to exclude.
| Parameters | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
Adds a filter of which tests to include.
| Parameters | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
Delete all the exclude filters currently tracked.
clearIncludeFilters
public void clearIncludeFilters ()
Delete all the include filters currently tracked.
getExcludeFilters
public Set<String> getExcludeFilters ()
Returns the current Set of exclude filters.
| Returns | |
|---|---|
Set<String> |
|
getIncludeFilters
public Set<String> getIncludeFilters ()
Returns the current Set of include filters.
| Returns | |
|---|---|
Set<String> |
|
getSyspropConfiguration
public PtsBotTest.TestSyspropConfiguration getSyspropConfiguration ()
| Returns | |
|---|---|
PtsBotTest.TestSyspropConfiguration |
|
getTestFlagConfiguration
public PtsBotTest.TestFlagConfiguration getTestFlagConfiguration ()
| Returns | |
|---|---|
PtsBotTest.TestFlagConfiguration |
|
initFlagsConfig
public void initFlagsConfig (ITestDevice testDevice, File testConfigFile)
| Parameters | |
|---|---|
testDevice |
ITestDevice |
testConfigFile |
File |
initSystemPropertiesConfig
public void initSystemPropertiesConfig (File testConfigFile)
| Parameters | |
|---|---|
testConfigFile |
File |
run
public void run (TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
| Parameters | |
|---|---|
testInfo |
TestInformation: The TestInformation object containing useful information to run
tests. |
listener |
ITestInvocationListener: the ITestInvocationListener of test results |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
split
public Collection<IRemoteTest> split (int shardCountHint)
Alternative version of split() which also provides the shardCount that is attempted
to be run. This is useful for some test runner that cannot arbitrarily decide sometimes.
| Parameters | |
|---|---|
shardCountHint |
int: the attempted shard count. |
| Returns | |
|---|---|
Collection<IRemoteTest> |
a collection of subtests to be executed separately or null if test is
not currently shardable |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-06-22 UTC.