RunOnSystemUserTargetPreparer
public class RunOnSystemUserTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunOnSystemUserTargetPreparer |
一個ITargetPreparer
標記測試應該在使用者(而不是目前使用者)上執行。
預設情況下,這將切換用戶,使系統用戶位於前台。
當在具有無頭系統用戶的裝置上運行時,預設不會切換用戶,但測試仍將在該用戶上執行。
概括
公共構造函數 | |
---|---|
RunOnSystemUserTargetPreparer () |
公共方法 | |
---|---|
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
公共構造函數
RunOnSystemUserTargetPreparer
public RunOnSystemUserTargetPreparer ()
公共方法
設定
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo | TestInformation |
投擲 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |