com.android.builder.testing
Interface TestRunner

All Known Implementing Classes:
SimpleTestRunner

@Beta
public interface TestRunner

A test runner able to run tests on a list of DeviceConnector


Method Summary
 boolean runTests(java.lang.String projectName, java.lang.String variantName, java.io.File testApk, java.io.File testedApk, TestData testData, java.util.List<? extends com.android.builder.testing.api.DeviceConnector> deviceList, int maxThreads, int timeout, java.io.File resultsDir, com.android.utils.ILogger logger)
          Returns true if the tests succeeded.
 

Method Detail

runTests

boolean runTests(@NonNull
                 java.lang.String projectName,
                 @NonNull
                 java.lang.String variantName,
                 @NonNull
                 java.io.File testApk,
                 @Nullable
                 java.io.File testedApk,
                 @NonNull
                 TestData testData,
                 @NonNull
                 java.util.List<? extends com.android.builder.testing.api.DeviceConnector> deviceList,
                 int maxThreads,
                 int timeout,
                 @NonNull
                 java.io.File resultsDir,
                 @NonNull
                 com.android.utils.ILogger logger)
                 throws com.android.builder.testing.api.TestException,
                        java.lang.InterruptedException
Returns true if the tests succeeded.

Parameters:
projectName -
variantName -
testApk -
testedApk -
testData -
deviceList -
maxThreads - the max number of threads to run in parallel. 0 means unlimited.
timeout -
resultsDir -
logger -
Returns:
true if the test succeed
Throws:
com.android.builder.testing.api.TestException
java.lang.InterruptedException