AtestRunner

public class AtestRunner
extends BaseTestSuite

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.ITestSuite
     ↳ com.android.tradefed.testtype.suite.BaseTestSuite
       ↳ com.android.tradefed.testtype.suite.AtestRunner


Implementation of ITestSuite

Summary

Public constructors

AtestRunner()

Public methods

IConfigurationFactory loadConfigFactory()

Return a ConfigurationFactory instance.

LinkedHashMap<String, IConfiguration> loadTests()

Abstract method to load the tests configuration that will be run.

LinkedHashMap<String, IConfiguration> loadingStrategy(Set<IAbi> abis, List<File> testsDirs, String suitePrefix, String suiteTag)

Default loading strategy will load from the resources and the tests directory.

Protected methods

List<ITestInvocationListener> createModuleListeners()

Returns the list of ITestInvocationListener applicable to the ModuleListener level.

Public constructors

AtestRunner

public AtestRunner ()

Public methods

loadConfigFactory

public IConfigurationFactory loadConfigFactory ()

Return a ConfigurationFactory instance. Organized this way for testing purposes.

Returns
IConfigurationFactory

loadTests

public LinkedHashMap<String, IConfiguration> loadTests ()

Abstract method to load the tests configuration that will be run. Each tests is defined by a IConfiguration and a unique name under which it will report results.

Returns
LinkedHashMap<String, IConfiguration>

loadingStrategy

public LinkedHashMap<String, IConfiguration> loadingStrategy (Set<IAbi> abis, 
                List<File> testsDirs, 
                String suitePrefix, 
                String suiteTag)

Default loading strategy will load from the resources and the tests directory. Can be extended or replaced.

Parameters
abis Set: The set of abis to run against.

testsDirs List: The tests directory.

suitePrefix String: A prefix to filter the resource directory.

suiteTag String: The suite tag a module should have to be included. Can be null.

Returns
LinkedHashMap<String, IConfiguration> A list of loaded configuration for the suite.

Protected methods

createModuleListeners

protected List<ITestInvocationListener> createModuleListeners ()

Returns the list of ITestInvocationListener applicable to the ModuleListener level. These listeners will be re-used for each module, they will not be re-instantiated so they should not assume an internal state.

Returns
List<ITestInvocationListener>