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 ()

วิธีการสาธารณะ

ค้นหาไบนารี

public String findBinary (String binary)

ค้นหาไบนารีเพื่อให้สามารถเรียกใช้ได้

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

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

รันไบนารี

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

เรียกใช้ไบนารีตามเส้นทางที่กำหนด

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

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

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

พ่น
DeviceNotAvailableException