DeviceTestSuite
public
class
DeviceTestSuite
extends TestSuite
implements
IDeviceTest,
IRemoteTest
| java.lang.Object | ||
| ↳ | junit.framework.TestSuite | |
| ↳ | com.android.tradefed.testtype.DeviceTestSuite | |
ชุดทดสอบ JUnit ของ Helper ที่ให้บริการ IRemoteTest และ IDeviceTest
สรุป
ตัวสร้างแบบสาธารณะ | |
|---|---|
DeviceTestSuite()
|
|
DeviceTestSuite(Class<?> testClass)
|
|
เมธอดสาธารณะ | |
|---|---|
void
|
addTestSuite(Class<T> testClass)
เพิ่มการทดสอบจากชั้นเรียนที่ระบุลงในชุด |
ITestDevice
|
getDevice()
นำอุปกรณ์ที่จะทดสอบ |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
เรียกใช้การทดสอบและรายงานผลลัพธ์ไปยังผู้ฟัง |
void
|
runTest(Test test, TestResult result)
ลบล้างเมธอดหลักเพื่อส่งอุปกรณ์ไปยังการทดสอบที่รวมอยู่ |
void
|
setDevice(ITestDevice device)
ใส่อุปกรณ์ทดสอบ |
ตัวสร้างแบบสาธารณะ
DeviceTestSuite
public DeviceTestSuite ()
DeviceTestSuite
public DeviceTestSuite (Class<?> testClass)
| พารามิเตอร์ | |
|---|---|
testClass |
Class |
เมธอดสาธารณะ
addTestSuite
public void addTestSuite (Class<T> testClass)
เพิ่มการทดสอบจากชั้นเรียนที่ระบุลงในชุด
| พารามิเตอร์ | |
|---|---|
testClass |
Class |
โฮมรัน
public void run (TestInformation testInfo, ITestInvocationListener listener)
เรียกใช้การทดสอบและรายงานผลลัพธ์ไปยังผู้ฟัง
| พารามิเตอร์ | |
|---|---|
testInfo |
TestInformation: ออบเจ็กต์ TestInformation ที่มีข้อมูลที่เป็นประโยชน์ต่อการทดสอบ |
listener |
ITestInvocationListener: ITestInvocationListener ของผลการทดสอบ |
| การโยน | |
|---|---|
DeviceNotAvailableException |
|
runTest
public void runTest (Test test,
TestResult result)ลบล้างเมธอดหลักเพื่อส่งอุปกรณ์ไปยังการทดสอบที่รวมอยู่
| พารามิเตอร์ | |
|---|---|
test |
Test |
result |
TestResult |
setDevice
public void setDevice (ITestDevice device)
ใส่อุปกรณ์ทดสอบ
| พารามิเตอร์ | |
|---|---|
device |
ITestDevice: ITestDevice ที่จะใช้ |