RunCommandTargetPreparer
public class RunCommandTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer |
Bản tóm tắt
nhà thầu công cộng | |
---|---|
RunCommandTargetPreparer () |
Phương thức công khai | |
---|---|
final void | addRunCommand (String cmd) Thêm một lệnh sẽ được chạy bởi trình chuẩn bị. |
getCommands () | |
getExecutedCommands () | |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
phương pháp được bảo vệ | |
---|---|
ITestDevice | getDevice ( TestInformation testInfo) Trả về thiết bị để áp dụng trình chuẩn bị. |
nhà thầu công cộng
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
Phương thức công khai
addRunCommand
public final void addRunCommand (String cmd)
Thêm một lệnh sẽ được chạy bởi trình chuẩn bị.
Thông số | |
---|---|
cmd | String |
getCommands
publicgetCommands ()
trả lại | |
---|---|
getExecutedCommands
publicgetExecutedCommands ()
trả lại | |
---|---|
cài đặt
public void setUp (TestInformation testInfo)
Thông số | |
---|---|
testInfo | TestInformation |
ném | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
phá bỏ
public void tearDown (TestInformation testInfo, Throwable e)
Thông số | |
---|---|
testInfo | TestInformation |
e | Throwable |
ném | |
---|---|
DeviceNotAvailableException |
phương pháp được bảo vệ
getDevice
protected ITestDevice getDevice (TestInformation testInfo)
Trả về thiết bị để áp dụng trình chuẩn bị.
trả lại | |
---|---|
ITestDevice | Thiết bị để bôi chất chuẩn bị lên. |
ném | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |