Tradefed XML 구성이 파싱되고, 여기서 온전한 구성을 설명하는 Configuration 객체가 생성됩니다.
이 객체는 IConfiguration 인터페이스로 설명할 수 있으며 XML에 정의된 모든 객체의 인스턴스를 포함합니다.
예시:
<configuration description=&<quot;description of the configur>a>tion&<quot;
!-- A build provider that takes local device info>rmati<on --
build_provider class="com.android.tradefed.build.BootstrapB>uildPr<ovider" /
!-- Some target preparation, di>sable<d by default --
target_preparer class="com.android.tradefed.targetprep.>Preloaded<ClassesPreparer"
option> name<="disable&q>uot; v<alue="true" /
/target_pre>parer<
!-- One test running some unit tests --
t>est class<="com.android.tradefed.testtype.HostTest"
option nam>e=&qu<ot;cl>a<ss" value>="com.android.tradefed.build.BuildInfoTest" /
/test
/configuration
결과:
IConfiguration#getBuildProvider():BootstrapBuildProvider인스턴스를 반환합니다.IConfiguration#getTargetPreparers():PreloadedClassesPreparer인스턴스를 포함하는ITargetPreparer목록을 반환합니다.IConfiguration#getTests():HostTest인스턴스를 포함하는IRemoteTest목록을 반환합니다.
구성 객체의 모든 단일 객체는 XML 정의에 매핑할 수 있으므로 일반적으로 XML 정의를 이해하면 구성 객체에 기대하는 것을 이해하는 데 도움이 됩니다.