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 เส้นทางไปยังไบนารี หรือค่าว่างหากไม่พบ

runBinary

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

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

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

listener ITestInvocationListener: ตำแหน่งที่ควรรายงานผลลัพธ์

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

การโยน
DeviceNotAvailableException