透過集合功能整理內容
你可以依據偏好儲存及分類內容。
沙箱
public
interface
ISandbox
com.android.tradefed.sandbox.ISandbox
|
用於定義可用於執行叫用的沙箱的介面。
摘要
公用方法 |
abstract
String
|
createClasspath(File workingDir)
根據環境和 getTradefedSandboxEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, String[]) 傳回的工作目錄建立類別路徑。
|
abstract
IConfiguration
|
createThinLauncherConfig(String[] args, IKeyStoreClient keyStoreClient, IRunUtil runUtil, File globalConfig)
特殊模式與主要執行作業中斷連線:如果設定未顯示在
我們會改回使用精簡的啟動器,嘗試設定沙箱
並輸入工作目錄,即可直接在
版本化目錄
|
default
|
discoverTests(IInvocationContext context, IConfiguration configuration)
prepareEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, com.android.tradefed.result.ITestInvocationListener) 的子步驟,會在 SandboxOptions.shouldUseTestDiscovery() 啟用的情況下探索測試。
|
default
|
discoverTests(IInvocationContext context, IConfiguration configuration, ITestLogger logger)
|
default
IFolderBuildInfo
|
fetchSandboxExtraArtifacts(IInvocationContext context, IConfiguration configuration, String[] args)
prepareEnvironment(com.android.tradefed.invoker.IInvocationContext, com.android.tradefed.config.IConfiguration, com.android.tradefed.result.ITestInvocationListener) 的子步驟,可擷取沙箱所需的額外檔案。
|
default
File
|
getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, String[] args)
傳回根據指令列引數使用的沙箱環境 TF。
|
default
File
|
getTradefedSandboxEnvironment(IInvocationContext context, IConfiguration nonVersionedConfig, ITestLogger logger, String[] args)
|
abstract
Exception
|
prepareEnvironment(IInvocationContext context, IConfiguration configuration, ITestInvocationListener listener)
準備讓沙箱正常執行環境。
|
abstract
CommandResult
|
run(TestInformation info, IConfiguration configuration, ITestLogger logger)
使用已設定的環境執行沙箱。
|
abstract
void
|
tearDown()
清除任何可能已變更的狀態、檔案或環境。
|
公用方法
createThinLauncherConfig
public abstract IConfiguration createThinLauncherConfig (String[] args,
IKeyStoreClient keyStoreClient,
IRunUtil runUtil,
File globalConfig)
特殊模式與主要執行作業中斷連線:如果設定未顯示在
我們會改回使用精簡的啟動器,嘗試設定沙箱
並輸入工作目錄,即可直接在
版本化目錄
參數 |
args |
String :原始指令列引數。 |
keyStoreClient |
IKeyStoreClient :用於建立設定目前的 KeyStore 用戶端。 |
runUtil |
IRunUtil :目前用於執行主機指令的 IRunUtil 。 |
globalConfig |
File :用來執行 TF 子程序的全域設定。 |
傳回 |
IConfiguration |
指向 TF 設定 XML 的檔案 (適用於 NON_VERSIONED 物件)。退貨程序
如果無法建立精簡啟動器設定,則為空值。 |
getTradefedSandboxEnvironment
public File getTradefedSandboxEnvironment (IInvocationContext context,
IConfiguration nonVersionedConfig,
String[] args)
傳回根據指令列引數使用的沙箱環境 TF。
getTradefedSandboxEnvironment
public File getTradefedSandboxEnvironment (IInvocationContext context,
IConfiguration nonVersionedConfig,
ITestLogger logger,
String[] args)
參數 |
context |
IInvocationContext |
nonVersionedConfig |
IConfiguration |
logger |
ITestLogger |
args |
String |
TearDown
public abstract void tearDown ()
清除任何可能已變更的狀態、檔案或環境。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2024-08-22 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-08-22 (世界標準時間)。"],[],[]]