NativeStressTest

public class NativeStressTest
extends Object implements IDeviceTest, IRemoteTest

java.lang.Object
   ↳ com.android.tradefed.testtype.NativeStressTest


Un test che esegue un eseguibile di stress test nativo su un determinato dispositivo.

Utilizza NativeStressTestParser per analizzare il numero di iterazioni completate e segnalare questi risultati ai ITestInvocationListener.

Riepilogo

Costruttori pubblici

NativeStressTest()

Metodi pubblici

ITestDevice getDevice()

Ottieni il dispositivo di test.

String getModuleName()

Esegui il modulo di test nativo per Android.

void run(TestInformation testInfo, ITestInvocationListener listener)

Esegue i test e segnala il risultato all'ascoltatore.

void setDevice(ITestDevice device)

Esegui l'iniezione del dispositivo di test.

void setModuleName(String moduleName)

Imposta l'esecuzione del modulo di stress test nativo Android.

Costruttori pubblici

NativeStressTest

public NativeStressTest ()

Metodi pubblici

getDevice

public ITestDevice getDevice ()

Ottieni il dispositivo di test.

Ritorni
ITestDevice ITestDevice

getModuleName

public String getModuleName ()

Esegui il modulo di test nativo per Android.

Ritorni
String il nome del modulo di test nativo da eseguire o null se non impostato

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Esegue i test e segnala il risultato all'ascoltatore.

Parametri
testInfo TestInformation: l'oggetto TestInformation contenente informazioni utili per eseguire i test.

listener ITestInvocationListener: il ITestInvocationListener dei risultati del test

Lanci
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

Esegui l'iniezione del dispositivo di test.

Parametri
device ITestDevice: il ITestDevice da utilizzare

setModuleName

public void setModuleName (String moduleName)

Imposta l'esecuzione del modulo di stress test nativo Android.

Parametri
moduleName String: il nome del modulo di test nativo da eseguire