TfTestLauncher
public
class
TfTestLauncher
extends SubprocessTfLauncher
java.lang.Object | ||
↳ | com.android.tradefed.testtype.SubprocessTfLauncher | |
↳ | com.android.tradefed.testtype.TfTestLauncher |
Un IRemoteTest
per eseguire test di unità o funzionali su un'installazione TF separata.
Avvia un processo Java esterno per eseguire i test. Utilizzato per eseguire continuamente i test funzionali o dell'unità TF.
Riepilogo
Costruttori pubblici | |
---|---|
TfTestLauncher()
|
Metodi protetti | |
---|---|
void
|
addJavaArguments(
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 di eseguire il test. |
void
|
testTmpDirClean(File tmpDir, ITestInvocationListener listener)
Test aggiuntivo per assicurarsi che i test di unità nel sottoprocesso non creino file e che questi non vengano eliminati. |
Costruttori pubblici
TfTestLauncher
public TfTestLauncher ()
Metodi protetti
addJavaArguments
protected void addJavaArguments (args)
Consente di aggiungere parametri Java aggiuntivi all'invocazione del sottoprocesso.
Parametri | |
---|---|
args |
: l'elenco corrente degli 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 : l'ITestInvocationListener originale in cui segnalare i risultati. |
exception |
boolean : True se è stata sollevata un'eccezione all'interno del test. |
elapsedTime |
long : il tempo necessario 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 assicurarsi che i test di unità nel sottoprocesso non creino file e che questi non vengano eliminati.
Parametri | |
---|---|
tmpDir |
File : la directory temporanea del sottoprocesso. |
listener |
ITestInvocationListener : il ITestInvocationListener in cui segnalare il test. |