模塊分離器

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