模块分离器

public class ModuleSplitter
extends Object

java.lang.Object
com.android.tradefed.testtype.suite.ModuleSplitter


帮助程序将IConfiguration表示的模块列表拆分为ModuleDefinition表示的执行单元列表。

每个配置可能会生成 1 个或多个ModuleDefinition ,具体取决于其选项和测试类型:

概括

公共构造函数

ModuleSplitter ()

公共方法

static splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding)

根据加载的配置映射创建可执行单元ModuleDefinition的列表。

公共构造函数

模块分离器

public ModuleSplitter ()

公共方法

拆分配置

public static  splitConfiguration (TestInformation testInfo, 
                 runConfig, 
                 suitePreparersPerDevice, 
                int shardCount, 
                boolean dynamicModule, 
                boolean intraModuleSharding)

根据加载的配置映射创建可执行单元ModuleDefinition的列表。

参数
testInfo TestInformation :当前要进行分片的TestInformation

runConfig :从ITestSuite#loadTests()加载的ERROR(/LinkedHashMap)

suitePreparersPerDevice :每个测试设备的套件级准备者图。

shardCount int :有助于分片的分片计数提示。

dynamicModule boolean :模块是否可以在池中共享或必须独立(严格分片)。

intraModuleSharding boolean : 是否在模块内分片。

退货
ModuleDefinition列表