PtsBotTest
public
class
PtsBotTest
extends Object
implements
IRemoteTest,
IShardableTest,
ITestFilterReceiver,
ITestLogger
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
Chạy các kiểm thử PTS-bot. PTS-bot là một quy trình tự động hoá hoàn chỉnh của Bluetooth Profile Tuning Suite (Bộ công cụ điều chỉnh cấu hình Bluetooth). Đây là công cụ kiểm thử do tiêu chuẩn Bluetooth cung cấp để chạy các kiểm thử chứng nhận Máy chủ Bluetooth (xem https://www.bluetooth.com/develop-with-bluetooth/qualification-listing/qualification-test-tools/profile-tuning-suite/).
Tóm tắt
Lớp lồng ghép | |
|---|---|
class |
PtsBotTest.TestFlagConfiguration
|
class |
PtsBotTest.TestSyspropConfiguration
|
Hàm dựng công khai | |
|---|---|
PtsBotTest()
|
|
Phương thức công khai | |
|---|---|
void
|
addAllExcludeFilters(Set<String> filters)
Thêm |
void
|
addAllIncludeFilters(Set<String> filters)
Thêm |
void
|
addExcludeFilter(String filter)
Thêm bộ lọc để loại trừ các kiểm thử. |
void
|
addIncludeFilter(String filter)
Thêm bộ lọc để chọn những kiểm thử cần đưa vào. |
void
|
clearExcludeFilters()
Xoá tất cả các bộ lọc loại trừ hiện đang được theo dõi. |
void
|
clearIncludeFilters()
Xoá tất cả các bộ lọc bao gồm hiện đang được theo dõi. |
Set<String>
|
getExcludeFilters()
Trả về |
Set<String>
|
getIncludeFilters()
Trả về |
PtsBotTest.TestSyspropConfiguration
|
getSyspropConfiguration()
|
PtsBotTest.TestFlagConfiguration
|
getTestFlagConfiguration()
|
void
|
initFlagsConfig(ITestDevice testDevice, File testConfigFile)
|
void
|
initSystemPropertiesConfig(File testConfigFile)
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Chạy các kiểm thử và báo cáo kết quả cho trình nghe. |
Collection<IRemoteTest>
|
split(int shardCountHint)
Phiên bản thay thế của |
Hàm khởi tạo công khai
PtsBotTest
public PtsBotTest ()
Phương thức công khai
addAllExcludeFilters
public void addAllExcludeFilters (Set<String> filters)
Thêm Set bộ lọc mà bạn muốn loại trừ khỏi các kiểm thử.
| Tham số | |
|---|---|
filters |
Set |
addAllIncludeFilters
public void addAllIncludeFilters (Set<String> filters)
Thêm Set bộ lọc để đưa các kiểm thử vào.
| Tham số | |
|---|---|
filters |
Set |
addExcludeFilter
public void addExcludeFilter (String filter)
Thêm bộ lọc để loại trừ các kiểm thử.
| Tham số | |
|---|---|
filter |
String |
addIncludeFilter
public void addIncludeFilter (String filter)
Thêm bộ lọc để chọn những kiểm thử cần đưa vào.
| Tham số | |
|---|---|
filter |
String |
clearExcludeFilters
public void clearExcludeFilters ()
Xoá tất cả các bộ lọc loại trừ hiện đang được theo dõi.
clearIncludeFilters
public void clearIncludeFilters ()
Xoá tất cả các bộ lọc bao gồm hiện đang được theo dõi.
getExcludeFilters
public Set<String> getExcludeFilters ()
Trả về Set hiện tại của các bộ lọc loại trừ.
| Giá trị trả về | |
|---|---|
Set<String> |
|
getIncludeFilters
public Set<String> getIncludeFilters ()
Trả về Set hiện tại của các bộ lọc bao gồm.
| Giá trị trả về | |
|---|---|
Set<String> |
|
getSyspropConfiguration
public PtsBotTest.TestSyspropConfiguration getSyspropConfiguration ()
| Giá trị trả về | |
|---|---|
PtsBotTest.TestSyspropConfiguration |
|
getTestFlagConfiguration
public PtsBotTest.TestFlagConfiguration getTestFlagConfiguration ()
| Giá trị trả về | |
|---|---|
PtsBotTest.TestFlagConfiguration |
|
initFlagsConfig
public void initFlagsConfig (ITestDevice testDevice, File testConfigFile)
| Tham số | |
|---|---|
testDevice |
ITestDevice |
testConfigFile |
File |
initSystemPropertiesConfig
public void initSystemPropertiesConfig (File testConfigFile)
| Tham số | |
|---|---|
testConfigFile |
File |
chạy
public void run (TestInformation testInfo, ITestInvocationListener listener)
Chạy các kiểm thử và báo cáo kết quả cho trình nghe.
| Tham số | |
|---|---|
testInfo |
TestInformation: Đối tượng TestInformation chứa thông tin hữu ích để chạy các kiểm thử. |
listener |
ITestInvocationListener: ITestInvocationListener kết quả kiểm thử |
| Gửi | |
|---|---|
DeviceNotAvailableException |
|
chia hoá đơn
public Collection<IRemoteTest> split (int shardCountHint)
Phiên bản thay thế của split() cũng cung cấp shardCount được cố gắng chạy. Điều này hữu ích cho một số trình chạy kiểm thử không thể tuỳ ý quyết định đôi khi.
| Tham số | |
|---|---|
shardCountHint |
int: số lượng phân đoạn đã thử. |
| Giá trị trả về | |
|---|---|
Collection<IRemoteTest> |
một tập hợp các kiểm thử phụ sẽ được thực thi riêng biệt hoặc null nếu kiểm thử hiện không phân đoạn được |