TestMappingSuiteRunner

public class TestMappingSuiteRunner
extends BaseTestSuite

java.lang.Object
   ↳ com.android.tradefed.testtype.suite.ITestSuite
     ↳ com.android.tradefed.testtype.suite.BaseTestSuite
       ↳ com.android.tradefed.testtype.suite.TestMappingSuiteRunner


實作 BaseTestSuite,以便執行由 include-filter 選項或建構中的 TEST_MAPPING 檔案指定的測試套件。

摘要

公用建構函式

TestMappingSuiteRunner()

公用方法

void clearKeywords()
void clearTestGroup()
void clearTestMappingPaths()
loadTestInfos()
loadTests()

載入要執行的測試設定。

公用建構函式

TestMappingSuiteRunner

public TestMappingSuiteRunner ()

公用方法

clearKeywords

public void clearKeywords ()

clearTestGroup

public void clearTestGroup ()

clearTestMappingPaths

public void clearTestMappingPaths ()

loadTestInfos

public  loadTestInfos ()

傳回

loadTests

public  loadTests ()

載入要執行的測試設定。每項測試都會由 IConfiguration 和專屬名稱定義,並以此名稱回報結果。您可以透過 2 種方式為 TestMappingSuiteRunner 載入測試:

1. --test-mapping-test-group,可指定 TEST_MAPPING 檔案中的測試群組。執行程式會透過建構構件 test_mappings.zip 剖析來源程式碼中的所有 TEST_MAPPING 檔案,並載入指定測試群組下所分組的測試。

2. --include-filter,用來指定要執行的測試名稱。用途是讓提交前檢查作業只執行與要驗證的 CL 相關的一系列測試。系統會從修改過的原始碼中,相關的 TEST_MAPPING 檔案編譯測試清單。

傳回
將測試名稱對應至每項測試的 IConfiguration 物件。