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