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.

loadTests()

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

loadingStrategy( abis, testsDirs, String suitePrefix, String suiteTag)

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

Protected methods

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  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

loadingStrategy

public  loadingStrategy ( abis, 
                 testsDirs, 
                String suitePrefix, 
                String suiteTag)

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

Parameters
abis : The set of abis to run against.

testsDirs : 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
A list of loaded configuration for the suite.

Protected methods

createModuleListeners

protected  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