CrosLsNexusPreparer

public class CrosLsNexusPreparer
extends BaseTargetPreparer implements ITargetCleaner, ITestLoggerReceiver

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.CrosLsNexusPreparer


Un preparatore che avvia e arresta il servizio LSNexus per un dispositivo ChromeOS.

Il servizio viene avviato prima dell'esecuzione del test e arrestato al termine.

Riepilogo

Costruttori pubblici

CrosLsNexusPreparer()

Metodi pubblici

void setTestLogger(ITestLogger testLogger)

Inserisce l'istanza ITestLogger

void setUp(TestInformation testInfo)

Esegui la configurazione del target per il test.

void tearDown(TestInformation testInfo, Throwable e)

Esegui la pulizia/lo smontaggio del target dopo il test.

Metodi protetti

IRunUtil getRunUtil()

Costruttori pubblici

CrosLsNexusPreparer

public CrosLsNexusPreparer ()

Metodi pubblici

setTestLogger

public void setTestLogger (ITestLogger testLogger)

Inserisce l'istanza ITestLogger

Parametri
testLogger ITestLogger

setUp

public void setUp (TestInformation testInfo)

Esegui la configurazione del target per il test.

Parametri
testInfo TestInformation: il TestInformation della chiamata.

Genera
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Esegui la pulizia/lo smontaggio del target dopo il test.

Parametri
testInfo TestInformation: il TestInformation della chiamata.

e Throwable: se la chiamata è terminata con un'eccezione, questa sarà l'eccezione rilevata a livello di chiamata. In caso contrario, sarà null.

Genera
DeviceNotAvailableException

Metodi protetti

getRunUtil

protected IRunUtil getRunUtil ()

Resi
IRunUtil