TfTestLauncher
public class TfTestLauncher
extends SubprocessTfLauncher
java.lang.Oggetto | ||
↳ | com.android.tradefed.testtype.SubprocessTfLauncher | |
↳ | com.android.tradefed.testtype.TfTestLauncher |
Un IRemoteTest
per l'esecuzione di unità o test funzionali rispetto a un'installazione TF separata.
Riepilogo
Costruttori pubblici | |
---|---|
TfTestLauncher () |
Metodi protetti | |
---|---|
void | addJavaArguments ( args) addJavaArguments ( args) Consente di aggiungere ulteriori parametri Java 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)
Consente di aggiungere ulteriori parametri Java all'invocazione del sottoprocesso.
Parametri | |
---|---|
args |
postRun
protected void postRun (ITestInvocationListener listener, boolean exception, long elapsedTime)
Azioni da intraprendere al termine del test TF.
Parametri | |
---|---|
listener | ITestInvocationListener : l' ITestInvocationListener originale dove riportare i risultati. |
exception | boolean : True se l'eccezione è stata sollevata all'interno del test. |
elapsedTime | long : il tempo impiegato per eseguire i test. |
preRun
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. |