TfTestLauncher

public class TfTestLauncher
extends SubprocessTfLauncher

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


A IRemoteTest for running unit or functional tests against a separate TF installation.

Launches an external java process to run the tests. Used for running the TF unit or functional tests continuously.

Summary

Public constructors

TfTestLauncher()

Protected methods

void addJavaArguments(List<String> args)

Allow to add extra java parameters to the subprocess invocation.

void postRun(ITestInvocationListener listener, boolean exception)

Actions to take after the TF test is finished.

void preRun()

Setup before running the test.

void testTmpDirClean(File tmpDir, ITestInvocationListener listener)

Extra test to ensure no files are created by the unit tests in the subprocess and not cleaned.

Public constructors

TfTestLauncher

TfTestLauncher ()

Protected methods

addJavaArguments

void addJavaArguments (List<String> args)

Allow to add extra java parameters to the subprocess invocation.

Parameters
args List: the current list of arguments to which we need to add the extra ones.

postRun

void postRun (ITestInvocationListener listener, 
                boolean exception)

Actions to take after the TF test is finished.

Parameters
listener ITestInvocationListener: the original ITestInvocationListener where to report results.
exception boolean: True if exception was raised inside the test.

preRun

void preRun ()

Setup before running the test.

testTmpDirClean

void testTmpDirClean (File tmpDir, 
                ITestInvocationListener listener)

Extra test to ensure no files are created by the unit tests in the subprocess and not cleaned.

Parameters
tmpDir File: the temporary dir of the subprocess.
listener ITestInvocationListener: the ITestInvocationListener where to report the test.