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 : Listener ที่จะรายงานผลลัพธ์

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

ขว้าง
DeviceNotAvailableException