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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.android.builder.testing.TestRunner
TestRunner.NoAuthorizedDeviceFoundException
 
Constructor Summary
SimpleTestRunner(java.io.File adbExec, java.io.File splitSelectExec, com.android.ide.common.process.ProcessExecutor processExecutor)
           
 
Method Summary
 boolean runTests(java.lang.String projectName, java.lang.String variantName, java.io.File testApk, TestData testData, java.util.List<? extends com.android.builder.testing.api.DeviceConnector> deviceList, int maxThreads, int timeoutInMs, java.util.Collection<java.lang.String> installOptions, 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(@NonNull
                        java.io.File adbExec,
                        @Nullable
                        java.io.File splitSelectExec,
                        @NonNull
                        com.android.ide.common.process.ProcessExecutor processExecutor)
Method Detail

runTests

public boolean runTests(@NonNull
                        java.lang.String projectName,
                        @NonNull
                        java.lang.String variantName,
                        @NonNull
                        java.io.File testApk,
                        @NonNull
                        TestData testData,
                        @NonNull
                        java.util.List<? extends com.android.builder.testing.api.DeviceConnector> deviceList,
                        int maxThreads,
                        int timeoutInMs,
                        @NonNull
                        java.util.Collection<java.lang.String> installOptions,
                        @NonNull
                        java.io.File resultsDir,
                        @NonNull
                        java.io.File coverageDir,
                        @NonNull
                        com.android.utils.ILogger logger)
                 throws com.android.builder.testing.api.TestException,
                        TestRunner.NoAuthorizedDeviceFoundException,
                        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.
timeoutInMs - time out in milliseconds
installOptions - parameters passed to the pm install command.
Returns:
true if the test succeed
Throws:
com.android.builder.testing.api.TestException
java.lang.InterruptedException
TestRunner.NoAuthorizedDeviceFoundException