PtsBot測試
public class PtsBotTest
extends Object
implements IRemoteTest , ITestFilterReceiver , IShardableTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
運行 PTS-bot 測試。 PTS-bot 是藍牙配置文件調整套件的完全自動化,它是藍牙標準提供的測試工具,用於運行藍牙主機認證測試(請參閱 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 (int shardCountHint) |
公共構造函數
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 (int shardCountHint)
split()
的替代版本還提供嘗試運行的 shardCount。這對於某些有時無法隨意決定的測試運行者很有用。
參數 | |
---|---|
shardCountHint | int :嘗試的分片計數。 |
退貨 | |
---|---|
要單獨執行的子測試的集合,如果測試當前不可分片,則為null |