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


ITestSuite 的实现

摘要

公共构造函数

AtestRunner()

公共方法

IConfigurationFactory loadConfigFactory()

返回 ConfigurationFactory 实例。

LinkedHashMap<String, IConfiguration> loadTests()

用于加载将要运行的测试配置的抽象方法。

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

默认加载策略将从资源和测试目录加载。

受保护的方法

List<ITestInvocationListener> createModuleListeners()

返回适用于 ModuleListener 级别的 ITestInvocationListener 列表。

公共构造函数

AtestRunner

public AtestRunner ()

公共方法

loadConfigFactory

public IConfigurationFactory loadConfigFactory ()

返回 ConfigurationFactory 实例。以这种方式组织是为了测试目的。

返回
IConfigurationFactory

loadTests

public LinkedHashMap<String, IConfiguration> loadTests ()

用于加载将要运行的测试配置的抽象方法。每个测试都由一个 IConfiguration 和一个唯一名称定义,测试结果将通过该名称进行报告。

返回
LinkedHashMap<String, IConfiguration>

loadingStrategy

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

默认加载策略将从资源和测试目录加载。可以延长或更换。

参数
abis Set:要运行的 ABI 集。

testsDirs List:测试目录。

suitePrefix String:用于过滤资源目录的前缀。

suiteTag String:模块应具有的 suite 标记才能被纳入。可以为 null。

返回
LinkedHashMap<String, IConfiguration> 套件的已加载配置列表。

受保护的方法

createModuleListeners

protected List<ITestInvocationListener> createModuleListeners ()

返回适用于 ModuleListener 级别的 ITestInvocationListener 列表。这些监听器将针对每个模块重复使用,不会重新实例化,因此不应假设存在内部状态。

返回
List<ITestInvocationListener>