RunCommandTargetPreparer
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) 返回应用准备器的设备。 |
公共构造函数
RunCommandTargetPreparer
public RunCommandTargetPreparer ()
公共方法
添加运行命令
public final void addRunCommand (String cmd)
添加将由准备者运行的命令。
参数 | |
---|---|
cmd | String |
获取命令
publicgetCommands ()
退货 | |
---|---|
getExecutedCommands
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 |