RunOnSystemUserTargetPreparer
public class RunOnSystemUserTargetPreparer
extends BaseTargetPreparer
Un ITargetPreparer
che contrassegna che i test devono essere eseguiti sull'utente (piuttosto che sull'utente corrente).
Per impostazione predefinita, questo cambierà utente in modo che l'utente di sistema sia in primo piano.
Quando si esegue su un dispositivo con un utente di sistema headless, l'utente non verrà cambiato per impostazione predefinita, ma i test continueranno a essere eseguiti su quell'utente.
Riepilogo
Costruttori pubblici
RunOnSystemUserTargetPreparer
public RunOnSystemUserTargetPreparer ()
Metodi pubblici
public void setUp (TestInformation testInfo)
Parametri |
---|
testInfo | TestInformation |
public void tearDown (TestInformation testInfo,
Throwable e)
Parametri |
---|
testInfo | TestInformation |
e | Throwable |