การทดสอบ PtsBot
public class PtsBotTest
extends Object
implements IRemoteTest , ITestFilterReceiver , IShardableTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.pandora.PtsBotTest |
เรียกใช้การทดสอบบอท PTS PTS-bot เป็นระบบอัตโนมัติที่สมบูรณ์ของ Bluetooth Profile Tuning Suite ซึ่งเป็นเครื่องมือทดสอบที่จัดทำโดยมาตรฐาน Bluetooth เพื่อเรียกใช้การทดสอบการรับรองโฮสต์ Bluetooth (ดู 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 addAllExcludeFilters (filters)
เพิ่ม ERROR(/Set)
ของตัวกรองที่จะไม่รวมการทดสอบ
พารามิเตอร์ | |
---|---|
filters |
เพิ่มตัวกรองรวมทั้งหมด
public void addAllIncludeFilters (filters)
เพิ่ม ERROR(/Set)
ของตัวกรองที่จะรวมการทดสอบ
พารามิเตอร์ | |
---|---|
filters |
เพิ่ม ExcludeFilter
public void addExcludeFilter (String filter)
เพิ่มตัวกรองที่จะไม่รวมการทดสอบ
พารามิเตอร์ | |
---|---|
filter | String |
เพิ่มรวมตัวกรอง
public void addIncludeFilter (String filter)
เพิ่มตัวกรองที่จะรวมการทดสอบ
พารามิเตอร์ | |
---|---|
filter | String |
clearExcludeFilter
public void clearExcludeFilters ()
ลบตัวกรองแยกทั้งหมดที่ติดตามอยู่ในปัจจุบัน
ล้างรวมตัวกรอง
public void clearIncludeFilters ()
ลบตัวกรองรวมทั้งหมดที่ติดตามอยู่ในปัจจุบัน
รับตัวกรองที่ไม่รวม
publicgetExcludeFilters ()
ส่งกลับ ERROR(/Set)
ปัจจุบันของตัวกรองที่แยกออก
ส่งคืน | |
---|---|
วิ่ง
public void run (TestInformation testInfo, ITestInvocationListener listener)
ดำเนินการทดสอบและรายงานผลให้ผู้ฟังทราบ
พารามิเตอร์ | |
---|---|
testInfo | TestInformation : อ็อบเจกต์ TestInformation ที่มีข้อมูลที่เป็นประโยชน์เพื่อเรียกใช้การทดสอบ |
listener | ITestInvocationListener : ITestInvocationListener ของผลการทดสอบ |
พ่น | |
---|---|
DeviceNotAvailableException |
แยก
publicsplit (int shardCountHint)
รุ่นทางเลือกของ split()
ซึ่งยังมี shardCount ที่พยายามเรียกใช้ สิ่งนี้มีประโยชน์สำหรับนักวิ่งทดสอบบางคนที่ไม่สามารถตัดสินใจโดยพลการได้ในบางครั้ง
พารามิเตอร์ | |
---|---|
shardCountHint | int : จำนวนเศษที่พยายาม |
ส่งคืน | |
---|---|
ชุดของการทดสอบย่อยที่จะดำเนินการแยกกันหรือ null หากการทดสอบไม่สามารถแบ่งย่อยได้ในขณะนี้ |