運行命令目標準備器
public class RunCommandTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunCommandTargetPreparer |
概括
公共構造函數 | |
---|---|
RunCommandTargetPreparer () |
公共方法 | |
---|---|
final void | addRunCommand (String cmd) 新增將由準備器運行的命令。 |
getCommands () | |
getExecutedCommands () | |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
受保護的方法 | |
---|---|
ITestDevice | getDevice ( TestInformation testInfo) 返回要套用準備器的裝置。 |
公共構造函數
運行命令目標準備器
public RunCommandTargetPreparer ()
公共方法
新增運行命令
public final void addRunCommand (String cmd)
新增將由準備器運行的命令。
參數 | |
---|---|
cmd | String |
獲取命令
publicgetCommands ()
退貨 | |
---|---|
取得執行命令
publicgetExecutedCommands ()
退貨 | |
---|---|
設定
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo | TestInformation |
投擲 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |
受保護的方法
取得設備
protected ITestDevice getDevice (TestInformation testInfo)
返回要套用準備器的裝置。
退貨 | |
---|---|
ITestDevice | 應用製備器的設備。 |
投擲 | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
TargetSetupError |