测试跑者

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 实例。

loadTests ()

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

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

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

受保护的方法

createModuleListeners ()

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

公共构造函数

测试跑者

public AtestRunner ()

公共方法

加载配置工厂

public IConfigurationFactory loadConfigFactory ()

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

退货
IConfigurationFactory

负载测试

public  loadTests ()

加载将要运行的测试配置的抽象方法。每个测试均由IConfiguration和报告结果的唯一名称定义。

退货

加载策略

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

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

参数
abis :要运行的 abis 集合。

testsDirs :测试目录。

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

suiteTag String :模块必须包含的套件标签。可以为空。

退货
套件已加载配置的列表。

受保护的方法

创建模块监听器

protected  createModuleListeners ()

返回适用于ModuleListener级别的ITestInvocationListener列表。这些侦听器将被每个模块重复使用,它们不会被重新实例化,因此它们不应呈现内部状态。

退货