PtsBotTest

public class PtsBotTest
extends Object implements IRemoteTest, IShardableTest, ITestFilterReceiver, ITestLogger

java.lang.Object
   ↳ com.android.tradefed.testtype.pandora.PtsBotTest


运行 PTS-bot 测试。PTS-bot 是 Bluetooth Profile Tuning Suite 的完整自动化版本,后者是蓝牙标准提供的用于运行蓝牙主机认证测试的测试工具(请参阅 https://www.bluetooth.com/develop-with-bluetooth/qualification-listing/qualification-test-tools/profile-tuning-suite/)。

摘要

嵌套类

class PtsBotTest.TestFlagConfiguration

 

class PtsBotTest.TestSyspropConfiguration

 

公共构造函数

PtsBotTest()

公共方法

void addAllExcludeFilters(Set<String> filters)

添加用于指定要排除哪些测试的过滤条件Set

void addAllIncludeFilters(Set<String> filters)

添加用于指定要包含哪些测试的过滤条件Set

void addExcludeFilter(String filter)

添加用于指定要排除哪些测试的过滤条件。

void addIncludeFilter(String filter)

添加用于指定要包含哪些测试的过滤条件。

void clearExcludeFilters()

删除当前跟踪的所有排除过滤条件。

void clearIncludeFilters()

删除当前跟踪的所有包含过滤条件。

Set<String> getExcludeFilters()

返回当前的排除过滤条件Set

Set<String> getIncludeFilters()

返回当前的包含过滤条件Set

PtsBotTest.TestSyspropConfiguration getSyspropConfiguration()
PtsBotTest.TestFlagConfiguration getTestFlagConfiguration()
void initFlagsConfig(ITestDevice testDevice, File testConfigFile)
void initSystemPropertiesConfig(File testConfigFile)
void run(TestInformation testInfo, ITestInvocationListener listener)

运行测试,并将结果报告给监听器。

Collection<IRemoteTest> split(int shardCountHint)

split() 的替代版本,还提供尝试运行的 shardCount。

公共构造函数

PtsBotTest

public PtsBotTest ()

公共方法

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 ()

删除当前跟踪的所有包含过滤条件。

getExcludeFilters

public Set<String> getExcludeFilters ()

返回当前的排除过滤条件Set

返回
Set<String>

getIncludeFilters

public Set<String> getIncludeFilters ()

返回当前的包含过滤条件Set

返回
Set<String>

getSyspropConfiguration

public PtsBotTest.TestSyspropConfiguration getSyspropConfiguration ()

返回
PtsBotTest.TestSyspropConfiguration

getTestFlagConfiguration

public PtsBotTest.TestFlagConfiguration getTestFlagConfiguration ()

返回
PtsBotTest.TestFlagConfiguration

initFlagsConfig

public void initFlagsConfig (ITestDevice testDevice, 
                File testConfigFile)

参数
testDevice ITestDevice

testConfigFile File

initSystemPropertiesConfig

public void initSystemPropertiesConfig (File testConfigFile)

参数
testConfigFile File

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

运行测试,并将结果报告给监听器。

参数
testInfo TestInformation:包含用于运行测试的实用信息的 TestInformation 对象。

listener ITestInvocationListener:测试结果的 ITestInvocationListener

抛出
DeviceNotAvailableException

分解

public Collection<IRemoteTest> split (int shardCountHint)

split() 的替代版本,还提供尝试运行的 shardCount。这对于有时无法任意决定的某些测试运行程序非常有用。

参数
shardCountHint int:尝试分片的数量。

返回
Collection<IRemoteTest> 要单独执行的子测试集合,如果测试目前无法分片,则为 null