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 檔案 (做為套件)。
摘要
常數 | |
|---|---|
String |
IS_BWYN_ENV_VAR_KEY
|
公用建構函式 | |
|---|---|
TestMappingSuiteRunner()
|
|
公用方法 | |
|---|---|
void
|
clearKeywords()
|
void
|
clearTestGroup()
|
void
|
clearTestMappingPaths()
|
|
loadTestInfos()
|
|
loadTests()
載入要執行的測試設定。 |
常數
IS_BWYN_ENV_VAR_KEY
public static final String IS_BWYN_ENV_VAR_KEY
常數值: "IS_BWYN"
公用建構函式
TestMappingSuiteRunner
public TestMappingSuiteRunner ()
公用方法
clearKeywords
public void clearKeywords ()
clearTestGroup
public void clearTestGroup ()
clearTestMappingPaths
public void clearTestMappingPaths ()
loadTestInfos
publicloadTestInfos ()
| 傳回 | |
|---|---|
|
|
loadTests
publicloadTests ()
載入要執行的測試設定。每項測試都由 IConfiguration 和不重複的名稱定義,並會以該名稱回報結果。載入 TestMappingSuiteRunner 測試的方法有 2 種:
1. --test-mapping-test-group,用於指定 TEST_MAPPING 檔案中的測試群組。 執行器會透過建構構件 test_mappings.zip,剖析來源程式碼中的所有 TEST_MAPPING 檔案,並載入指定測試群組下的測試。
2. --include-filter,用於指定要執行的測試名稱。這個用途是為了進行預先提交檢查,只執行與要驗證的 CL 相關的測試清單。測試清單是從已修改原始碼中的相關 TEST_MAPPING 檔案編譯而來。
| 傳回 | |
|---|---|
|
測試名稱對應至各項測試的 IConfiguration 物件。 |