TfTestLauncher

public class TfTestLauncher
extends SubprocessTfLauncher

java.lang.Object
   ↳ com.android.tradefed.testtype.SubprocessTfLauncher
     ↳ com.android.tradefed.testtype.TfTestLauncher


Un IRemoteTest per eseguire test funzionali o delle unità su un'installazione TF separata.

Avvia un processo Java esterno per eseguire i test. Utilizzato per l'esecuzione continua dei test funzionali o delle unità TF.

Riepilogo

Costruttori pubblici

TfTestLauncher()

Metodi protetti

void addJavaArguments(List<String> args)

Consente di aggiungere parametri Java aggiuntivi all'invocazione del sottoprocesso.

void postRun(ITestInvocationListener listener, boolean exception, long elapsedTime)

Azioni da intraprendere al termine del test TF.

void preRun()

Configurazione prima dell'esecuzione del test.

void testTmpDirClean(File tmpDir, ITestInvocationListener listener)

Test aggiuntivo per assicurarsi che non vengano creati file dai test delle unità nel sottoprocesso e che non vengano puliti.

Costruttori pubblici

TfTestLauncher

public TfTestLauncher ()

Metodi protetti

addJavaArguments

protected void addJavaArguments (List<String> args)

Consente di aggiungere parametri Java aggiuntivi all'invocazione del sottoprocesso.

Parametri
args List: l'elenco corrente di argomenti a cui dobbiamo aggiungere quelli aggiuntivi.

postRun

protected void postRun (ITestInvocationListener listener, 
                boolean exception, 
                long elapsedTime)

Azioni da intraprendere al termine del test TF.

Parametri
listener ITestInvocationListener: il ITestInvocationListener originale in cui segnalare i risultati.

exception boolean: True se è stata generata un'eccezione all'interno del test.

elapsedTime long: il tempo impiegato per eseguire i test.

preRun

protected void preRun ()

Configurazione prima dell'esecuzione del test.

testTmpDirClean

protected void testTmpDirClean (File tmpDir, 
                ITestInvocationListener listener)

Test aggiuntivo per assicurarsi che non vengano creati file dai test delle unità nel sottoprocesso e che non vengano puliti.

Parametri
tmpDir File: la directory temporanea del sottoprocesso.

listener ITestInvocationListener: il ITestInvocationListener in cui segnalare il test.