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)

添加要排除的測試的過濾器的ERROR(/Set)

void addAllIncludeFilters ( filters) addAllIncludeFilters ( filters)

添加要包含哪些測試的過濾器的ERROR(/Set)

void addExcludeFilter (String filter)

添加要排除哪些測試的過濾器。

void addIncludeFilter (String filter)

添加要包含哪些測試的過濾器。

void clearExcludeFilters ()

刪除當前跟踪的所有排除過濾器。

void clearIncludeFilters ()

刪除當前跟踪的所有包含過濾器。

getExcludeFilters ()

返回排除過濾器的當前ERROR(/Set)

getIncludeFilters ()

返回包含過濾器的當前ERROR(/Set)

void run ( TestInformation testInfo, ITestInvocationListener listener)

運行測試,並將結果報告給偵聽器。

split (Integer shardCountHint, TestInformation testInfo)

split(int)的替代版本,它還提供了一個TestInformation ,其中包含來自創建分片的父級的早期信息。

公共構造函數

PtsBot測試

public PtsBotTest ()

公共方法

添加所有排除過濾器

public void addAllExcludeFilters ( filters)

添加要排除的測試的過濾器的ERROR(/Set)

參數
filters

添加所有包含過濾器

public void addAllIncludeFilters ( filters)

添加要包含哪些測試的過濾器的ERROR(/Set)

參數
filters

添加排除過濾器

public void addExcludeFilter (String filter)

添加要排除哪些測試的過濾器。

參數
filter String

添加包含過濾器

public void addIncludeFilter (String filter)

添加要包含哪些測試的過濾器。

參數
filter String

清除排除過濾器

public void clearExcludeFilters ()

刪除當前跟踪的所有排除過濾器。

清除包含過濾器

public void clearIncludeFilters ()

刪除當前跟踪的所有包含過濾器。

獲取排除過濾器

public  getExcludeFilters ()

返回排除過濾器的當前ERROR(/Set)

退貨

getIncludeFilters

public  getIncludeFilters ()

返回包含過濾器的當前ERROR(/Set)

退貨

跑步

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

運行測試,並將結果報告給偵聽器。

參數
testInfo TestInformation :包含運行測試的有用信息的TestInformation對象。

listener ITestInvocationListener : 測試結果的ITestInvocationListener

投擲
DeviceNotAvailableException

分裂

public  split (Integer shardCountHint, 
                TestInformation testInfo)

split(int)的替代版本,它還提供了一個TestInformation ,其中包含來自創建分片的父級的早期信息。如果在分片期間需要訪問諸如設備或構建信息之類的東西,這將很有用。

參數
shardCountHint Integer :嘗試的分片數。

testInfo TestInformation :父TestInformation

退貨
要單獨執行的子測試的集合,如果測試當前不可分片則為null