com.android.builder.testing
Class SimpleTestRunner

java.lang.Object
  extended by com.android.builder.testing.SimpleTestRunner
All Implemented Interfaces:
TestRunner

public class SimpleTestRunner
extends java.lang.Object
implements TestRunner

Basic TestRunner running tests on all devices.


Constructor Summary
SimpleTestRunner()
           
 
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, java.io.File coverageDir, com.android.utils.ILogger logger)
          Returns true if the tests succeeded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTestRunner

public SimpleTestRunner()
Method Detail

runTests

public 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
                        java.io.File coverageDir,
                        @NonNull
                        com.android.utils.ILogger logger)
                 throws com.android.builder.testing.api.TestException,
                        java.lang.InterruptedException
Description copied from interface: TestRunner
Returns true if the tests succeeded.

Specified by:
runTests in interface TestRunner
maxThreads - the max number of threads to run in parallel. 0 means unlimited.
Returns:
true if the test succeed
Throws:
com.android.builder.testing.api.TestException
java.lang.InterruptedException