模块分配器

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