ExecutableHostTest

public class ExecutableHostTest
extends ExecutableBaseTest

java.lang.Object
   ↳ com.android.tradefed.testtype.binary.ExecutableBaseTest
     ↳ com.android.tradefed.testtype.binary.ExecutableHostTest


โปรแกรมเรียกใช้การทดสอบสำหรับไฟล์ที่เรียกใช้งานได้ซึ่งทำงานในโฮสต์ โปรแกรมเรียกใช้จะใช้ IDeviceTest เนื่องจากไบนารีของโฮสต์อาจสื่อสารกับอุปกรณ์ หากอุปกรณ์ที่ได้รับไม่ใช่ StubDevice ระบบจะส่งหมายเลขซีเรียลไปยังไบนารีเพื่อนำไปใช้

สรุป

เครื่องมือสร้างสาธารณะ

ExecutableHostTest()

เมธอดสาธารณะ

String findBinary(String binary)

ค้นหาไบนารีเพื่อดำเนินการ

void runBinary(String binaryPath, ITestInvocationListener listener, TestDescription description)

เรียกใช้ไบนารีในเส้นทางที่ระบุจริง

เครื่องมือสร้างสาธารณะ

ExecutableHostTest

public ExecutableHostTest ()

เมธอดสาธารณะ

findBinary

public String findBinary (String binary)

ค้นหาไบนารีเพื่อดำเนินการ

พารามิเตอร์
binary String: เส้นทางของไบนารีหรือชื่อไบนารี

การคืนสินค้า
String เส้นทางไปยังไบนารี หรือ null หากไม่พบ

runBinary

public void runBinary (String binaryPath, 
                ITestInvocationListener listener, 
                TestDescription description)

เรียกใช้ไบนารีในเส้นทางที่ระบุจริง

พารามิเตอร์
binaryPath String: เส้นทางของไบนารี

listener ITestInvocationListener: Listener ที่ใช้รายงานผลลัพธ์

description TestDescription: อยู่ระหว่างการทดสอบ

ส่ง
DeviceNotAvailableException
IOException