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 ()
公共方法
setUp
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo |
TestInformation |
抛出 | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
抛出 | |
---|---|
DeviceNotAvailableException |