ModuleSplitter

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)

読み込まれた構成のマップに基づいて、実行可能なユニット ModuleDefinition のリストを作成する。

パブリック コンストラクタ

ModuleSplitter

public ModuleSplitter ()

パブリック メソッド

splitConfiguration

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 のリスト