Mantieni tutto organizzato con le raccolte Salva e classifica i contenuti in base alle tue preferenze.

TfTest Launcher

public class TfTestLauncher
extends SubprocessTfLauncher

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


Un IRemoteTest per l'esecuzione di unità o test funzionali su un'installazione TF separata.

Avvia un processo java esterno per eseguire i test. Utilizzato per eseguire continuamente l'unità TF o test funzionali.

Riepilogo

Costruttori pubblici

TfTestLauncher ()

Metodi protetti

void addJavaArguments ( args) addJavaArguments ( args)

Consenti di aggiungere parametri Java aggiuntivi alla chiamata del sottoprocesso.

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

Azioni da intraprendere al termine del test TF.

void preRun ()

Configurazione prima di eseguire il test.

void testTmpDirClean (File tmpDir, ITestInvocationListener listener)

Test aggiuntivo per garantire che nessun file venga creato dagli unit test nel sottoprocesso e non venga pulito.

Costruttori pubblici

TfTest Launcher

public TfTestLauncher ()

Metodi protetti

addJavaArguments

protected void addJavaArguments ( args)

Consenti di aggiungere parametri Java aggiuntivi alla chiamata del sottoprocesso.

Parametri
args : l'attuale elenco di argomenti a cui dobbiamo aggiungere quelli extra.

dopoEsegui

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

Azioni da intraprendere al termine del test TF.

Parametri
listener ITestInvocationListener : l'originale ITestInvocationListener in cui riportare i risultati.

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

elapsedTime long : il tempo impiegato per eseguire i test.

pre-corsa

protected void preRun ()

Configurazione prima di eseguire il test.

testTmpDirClean

protected void testTmpDirClean (File tmpDir, 
                ITestInvocationListener listener)

Test aggiuntivo per garantire che nessun file venga creato dagli unit test nel sottoprocesso e non venga pulito.

Parametri
tmpDir File : la directory temporanea del sottoprocesso.

listener ITestInvocationListener : ITestInvocationListener in cui segnalare il test.