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.
Summary
Public constructors | |
---|---|
TfTestLauncher()
|
Protected methods | |
---|---|
void
|
addJavaArguments(
Allow to add extra java parameters to the subprocess invocation. |
void
|
postRun(ITestInvocationListener listener, boolean exception, long elapsedTime)
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
public TfTestLauncher ()
Protected methods
addJavaArguments
protected void addJavaArguments (args)
Allow to add extra java parameters to the subprocess invocation.
Parameters | |
---|---|
args |
: the current list of arguments to which we need to add the extra ones. |
postRun
protected void postRun (ITestInvocationListener listener, boolean exception, long elapsedTime)
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. |
elapsedTime |
long : the time taken to run the tests. |
preRun
protected void preRun ()
Setup before running the test.
testTmpDirClean
protected 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. |