จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

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 หากไม่พบ

วิ่งไบนารี

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

รันไบนารีจริงตามเส้นทางที่กำหนด

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

listener ITestInvocationListener : ผู้ฟังที่จะรายงานผลลัพธ์

description TestDescription : กำลังดำเนินการทดสอบ

ขว้าง
DeviceNotAvailableException