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 |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
擲回 | |
---|---|
DeviceNotAvailableException |