AssistenteUtente

public final class UserHelper
extends Object

java.lang.Object
com.android.tradefed.targetprep.UserHelper


Riepilogo

Campi

public static final String RUN_TESTS_AS_USER_KEY

Proprietà di sistema utilizzata per indicare quale utente Android esegue il test.

Metodi pubblici

static int createUser(ITestDevice device, boolean reuseTestUser)
static int getRunTestsAsUser(TestInformation testInfo)

Ottiene l'ID utente per eseguire i test come, dalla proprietà RUN_TESTS_AS_USER_KEY.

Campi

RUN_TESTS_AS_USER_KEY

public static final String RUN_TESTS_AS_USER_KEY

Proprietà di sistema utilizzata per indicare quale utente Android esegue il test.

Metodi pubblici

CreaUtente

public static int createUser (ITestDevice device, 
                boolean reuseTestUser)

Parametri
device ITestDevice

reuseTestUser boolean

Ritorni
int

Lanci
DeviceNotAvailableException
TargetSetupError

getRunTestsAsUser

public static int getRunTestsAsUser (TestInformation testInfo)

Ottiene l'ID utente per eseguire i test come, dalla proprietà RUN_TESTS_AS_USER_KEY.

Se la proprietà non è impostata o non è valida, restituisce l'utente corrente.

Parametri
testInfo TestInformation

Ritorni
int

Lanci
DeviceNotAvailableException