AtestRunner
public
class
AtestRunner
extends BaseTestSuite
| java.lang.Object | |||
| ↳ | com.android.tradefed.testtype.suite.ITestSuite | ||
| ↳ | com.android.tradefed.testtype.suite.BaseTestSuite | ||
| ↳ | com.android.tradefed.testtype.suite.AtestRunner | ||
實作 ITestSuite
摘要
公用建構函式 | |
|---|---|
AtestRunner()
|
|
公用方法 | |
|---|---|
IConfigurationFactory
|
loadConfigFactory()
傳回 ConfigurationFactory 例項。 |
LinkedHashMap<String, IConfiguration>
|
loadTests()
Abstract method to load the tests configuration that will be run. |
LinkedHashMap<String, IConfiguration>
|
loadingStrategy(Set<IAbi> abis, List<File> testsDirs, String suitePrefix, String suiteTag)
預設載入策略會從資源和測試目錄載入。 |
受保護的方法 | |
|---|---|
List<ITestInvocationListener>
|
createModuleListeners()
傳回適用於 |
公用建構函式
AtestRunner
public AtestRunner ()
公用方法
loadConfigFactory
public IConfigurationFactory loadConfigFactory ()
傳回 ConfigurationFactory 例項。為測試目的而這樣整理。
| 傳回 | |
|---|---|
IConfigurationFactory |
|
loadTests
public LinkedHashMap<String, IConfiguration> loadTests ()
載入要執行的測試設定的抽象方法。每項測試都由 IConfiguration 和不重複的名稱定義,並會根據該名稱回報結果。
| 傳回 | |
|---|---|
LinkedHashMap<String, IConfiguration> |
|
loadingStrategy
public LinkedHashMap<String, IConfiguration> loadingStrategy (Set<IAbi> abis, List<File> testsDirs, String suitePrefix, String suiteTag)
預設載入策略會從資源和測試目錄載入。可延長或更換。
| 參數 | |
|---|---|
abis |
Set:要執行的 ABI 集。 |
testsDirs |
List:測試目錄。 |
suitePrefix |
String:用於篩選資源目錄的前置字串。 |
suiteTag |
String:模組應具備的套件代碼,才能納入其中。可為空值。 |
| 傳回 | |
|---|---|
LinkedHashMap<String, IConfiguration> |
套件的已載入設定清單。 |
受保護的方法
createModuleListeners
protected List<ITestInvocationListener> createModuleListeners ()
傳回適用於 ModuleListener 層級的 ITestInvocationListener 清單。這些監聽器會用於每個模組,不會重新例項化,因此不應假設內部狀態。
| 傳回 | |
|---|---|
List<ITestInvocationListener> |
|