HostGTest

public class HostGTest
extends GTestBase implements IBuildReceiver

java.lang.Object
com.android.tradefed.testtype.GTestBase
com.android.tradefed.testtype.HostGTest


การทดสอบที่รันแพ็คเกจการทดสอบดั้งเดิม

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

HostGTest ()

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

CommandResult executeHostCommand (String cmd, long timeoutMs)
CommandResult executeHostCommand (String cmd)
String loadFilter (String binaryOnHost)

กำหนดวิธีการกรองรับ

void run ( TestInformation testInfo, ITestInvocationListener listener)

void setBuild ( IBuildInfo buildInfo)

ผู้รับเหมาก่อสร้างสาธารณะ

HostGTest

public HostGTest ()

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

ดำเนินการHostCommand

public CommandResult executeHostCommand (String cmd, 
                long timeoutMs)

พารามิเตอร์
cmd String : คำสั่งที่ต้องการดำเนินการในโฮสต์

timeoutMs long : หมดเวลาสำหรับคำสั่งในหน่วยมิลลิวินาที

การส่งคืน
CommandResult CommandResult ของคำสั่ง

ดำเนินการHostCommand

public CommandResult executeHostCommand (String cmd)

พารามิเตอร์
cmd String : คำสั่งที่ต้องการดำเนินการในโฮสต์

การส่งคืน
CommandResult CommandResult ของคำสั่ง

โหลดฟิลเตอร์

public String loadFilter (String binaryOnHost)

กำหนดวิธีการกรองรับ

คลาสย่อยต้องใช้วิธีรับตัวกรองของตัวเอง

พารามิเตอร์
binaryOnHost String : เส้นทางแบบเต็มของไฟล์ตัวกรอง

การส่งคืน
String สตริงตัวกรอง

วิ่ง

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

พารามิเตอร์
testInfo TestInformation

listener ITestInvocationListener

ขว้าง
DeviceNotAvailableException

ชุดสร้าง

public void setBuild (IBuildInfo buildInfo)

พารามิเตอร์
buildInfo IBuildInfo