應用程式設定
public class AppSetup
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.AppSetup |
一個ITargetPreparer
,用於安裝 apk 及其測試。
設定 --uninstall 時,需要在 PATH 上設定“aapt”
概括
公共構造函數 | |
---|---|
AppSetup () |
公共方法 | |
---|---|
void | setUp ( ITestDevice device, IBuildInfo buildInfo) |
void | tearDown ( ITestDevice device, IBuildInfo buildInfo, Throwable e)
|
公共構造函數
應用程式設定
public AppSetup ()
公共方法
設定
public void setUp (ITestDevice device, IBuildInfo buildInfo)
參數 | |
---|---|
device | ITestDevice |
buildInfo | IBuildInfo |
投擲 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)
參數 | |
---|---|
device | ITestDevice |
buildInfo | IBuildInfo |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |