PtsBotTest
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标准提供的运行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) |
公共构造函数
PtsBotTest
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 |