PtsBot测试
public class PtsBotTest
extends Object
implements IRemoteTest , ITestFilterReceiver , IShardableTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
运行 PTS-bot 测试。 PTS-bot 是 Bluetooth Profile Tuning Suite 的完全自动化,它是蓝牙标准提供的测试工具,用于运行 Bluetooth Host 认证测试(参见 https://www.bluetooth.com/develop-with-bluetooth/qualification-列表/资格测试工具/配置文件调整套件/)。
概括
公共构造函数 | |
---|---|
PtsBotTest () |
公共方法 | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) 添加要排除的测试的过滤器的 |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) 添加要包含哪些测试的过滤器的 |
void | addExcludeFilter (String filter) 添加要排除哪些测试的过滤器。 |
void | addIncludeFilter (String filter) 添加要包含哪些测试的过滤器。 |
void | clearExcludeFilters () 删除当前跟踪的所有排除过滤器。 |
void | clearIncludeFilters () 删除当前跟踪的所有包含过滤器。 |
getExcludeFilters () 返回排除过滤器的当前 | |
getIncludeFilters () 返回包含过滤器的当前 | |
void | run ( TestInformation testInfo, ITestInvocationListener listener) 运行测试,并将结果报告给侦听器。 |
split (Integer shardCountHint, TestInformation testInfo) |
公共构造函数
PtsBot测试
public PtsBotTest ()
公共方法
添加排除过滤器
public void addExcludeFilter (String filter)
添加要排除哪些测试的过滤器。
参数 | |
---|---|
filter | String |
添加包含过滤器
public void addIncludeFilter (String filter)
添加要包含哪些测试的过滤器。
参数 | |
---|---|
filter | String |
清除排除过滤器
public void clearExcludeFilters ()
删除当前跟踪的所有排除过滤器。
清除包含过滤器
public void clearIncludeFilters ()
删除当前跟踪的所有包含过滤器。
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试,并将结果报告给侦听器。
参数 | |
---|---|
testInfo | TestInformation :包含运行测试的有用信息的TestInformation 对象。 |
listener | ITestInvocationListener : 测试结果的ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |
分裂
publicsplit (Integer shardCountHint, TestInformation testInfo)
split(int)
的替代版本,它还提供了一个TestInformation
,其中包含来自创建分片的父级的早期信息。如果在分片期间需要访问诸如设备或构建信息之类的东西,这将很有用。
参数 | |
---|---|
shardCountHint | Integer :尝试的分片数。 |
testInfo | TestInformation :父TestInformation |
退货 | |
---|---|
要单独执行的子测试的集合,如果测试当前不可分片则为null |