ผู้เตรียมการเรียกใช้คำสั่งกำหนดเป้าหมาย

public class RunCommandTargetPreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
  com.android.tradefed.targetprep.RunCommandTargetPreparer


สรุป

ช่างก่อสร้างสาธารณะ

RunCommandTargetPreparer()

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

final void addRunCommand(String cmd)

เพิ่มคำสั่งที่เครื่องมือเตรียมเรียกใช้จะเรียกใช้

void setUp(TestInformation testInfo)

void tearDown(TestInformation testInfo, Throwable e)

วิธีการป้องกัน

ITestDevice getDevice(TestInformation testInfo)

แสดงอุปกรณ์เพื่อเปิดอุปกรณ์เตรียมพร้อม

ช่างก่อสร้างสาธารณะ

ผู้เตรียมการเรียกใช้คำสั่งกำหนดเป้าหมาย

public RunCommandTargetPreparer ()

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

เพิ่มคำสั่งเรียกใช้

public final void addRunCommand (String cmd)

เพิ่มคำสั่งที่เครื่องมือเตรียมเรียกใช้จะเรียกใช้

พารามิเตอร์
cmd String

ตั้งค่า

public void setUp (TestInformation testInfo)

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

การขว้าง
DeviceNotAvailableException
TargetSetupError

ฉีกขาด

public void tearDown (TestInformation testInfo, 
                Throwable e)

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

e Throwable

การขว้าง
DeviceNotAvailableException

วิธีการป้องกัน

GetDevice

protected ITestDevice getDevice (TestInformation testInfo)

แสดงอุปกรณ์เพื่อเปิดอุปกรณ์เตรียมพร้อม

คิกรีเทิร์น
ITestDevice อุปกรณ์ที่จะใช้กับผู้เตรียมการ

การขว้าง
TargetSetupError