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 dell'unità rispetto a un'installazione TF separata.
Riepilogo
Costruttori pubblici | |
---|---|
TfTestLauncher () |
Metodi protetti | |
---|---|
void | addJavaArguments ( args) addJavaArguments ( args) Consenti 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 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
TfTestLauncher
public TfTestLauncher ()
Metodi protetti
addJavaArguments
protected void addJavaArguments (args)
Consenti di aggiungere parametri Java aggiuntivi all'invocazione del sottoprocesso.
Parametri | |
---|---|
args |
postEsegui
protected void postRun (ITestInvocationListener listener, boolean exception, long elapsedTime)
Azioni da intraprendere al termine del test TF.
Parametri | |
---|---|
listener | ITestInvocationListener : l' ITestInvocationListener originale in cui riportare i risultati. |
exception | boolean : vero se è stata sollevata un'eccezione all'interno del test. |
elapsedTime | long : il tempo impiegato per eseguire i test. |
precorsa
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 : l' ITestInvocationListener dove riportare il test. |