โมดูลสปลิตเตอร์

public class ModuleSplitter
extends Object

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


ตัวช่วยแบ่งรายการโมดูลที่แสดงโดย IConfiguration ออกเป็นรายการหน่วยการดำเนินการที่แสดงโดย ModuleDefinition

การกำหนดค่าแต่ละรายการอาจสร้าง ModuleDefinition 1 รายการขึ้นไป ขึ้นอยู่กับตัวเลือกและประเภทการทดสอบ:

  • IConfiguration ที่ไม่สามารถแบ่งส่วนได้จะสร้าง ModuleDefinition เดียว
  • IConfiguration ที่แบ่งส่วนได้จะสร้าง ModuleDefinition จำนวนหนึ่งที่เชื่อมโยงกับคุณสมบัติ IRemoteTest :

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

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 : ERROR(/LinkedHashMap) โหลดจาก ITestSuite#loadTests()

suitePreparersPerDevice : แผนที่ของผู้จัดเตรียมระดับชุดต่ออุปกรณ์ทดสอบ

shardCount int : คำใบ้การนับเศษเพื่อช่วยในการแบ่งส่วน

dynamicModule boolean : โมดูลสามารถแชร์ในพูลได้หรือไม่หรือต้องแยกจากกัน (การแบ่งส่วนที่เข้มงวด)

intraModuleSharding boolean : ไม่ว่าจะแบ่งส่วนภายในโมดูลหรือไม่

การส่งคืน
รายการ ModuleDefinition