-
在/cts/android-cts-13_r8-linux_x86-arm/android-cts/subplans这个路径下创建文件MyCustomPlan.xml
-
打开MyCustomPlan.xml填入以下内容
<plan name="MyCustomPlan">
<test module="CtsWindowManagerDeviceTestCases" class="android.server.wm.ActivityVisibilityTests" method="testChangeToFullscreenWhenLockWithAttrInFreeform"/>
<test module="CtsWindowManagerDeviceTestCases" class="android.server.wm.ActivityVisibilityTests" method="testFreeformWindowToTurnScreenOn"/>
</plan>
格式是:<test module="模块名称" class="类" method="跑测的方法名"/>
- 运行自定义跑测plan
回到android-cts-13_r8-linux_x86-arm/android-cts/tools目录,先后执行以下命令
./cts-tradefed
run cts --plan MyCustomPlan