TfTestLauncher
public
class
TfTestLauncher
extends SubprocessTfLauncher
| java.lang.Object | ||
| ↳ | com.android.tradefed.testtype.SubprocessTfLauncher | |
| ↳ | com.android.tradefed.testtype.TfTestLauncher | |
針對個別 TF 安裝作業執行單元或功能測試的 IRemoteTest。
啟動外部 Java 程序來執行測試。用於持續執行 TF 單元或功能測試。
摘要
公用建構函式 | |
|---|---|
TfTestLauncher()
|
|
受保護的方法 | |
|---|---|
void
|
addJavaArguments(
允許在子程序叫用中加入額外的 Java 參數。 |
void
|
postRun(ITestInvocationListener listener, boolean exception, long elapsedTime)
完成 TF 測試後要採取的動作。 |
void
|
preRun()
執行測試前進行設定。 |
void
|
testTmpDirClean(File tmpDir, ITestInvocationListener listener)
額外測試,確保子程序中的單元測試不會建立檔案,且不會清除檔案。 |
公用建構函式
TfTestLauncher
public TfTestLauncher ()
受保護的方法
addJavaArguments
protected void addJavaArguments (args)
允許在子程序叫用中加入額外的 Java 參數。
| 參數 | |
|---|---|
args |
:需要新增額外引數的目前引數清單。 |
postRun
protected void postRun (ITestInvocationListener listener, boolean exception, long elapsedTime)
完成 TF 測試後要採取的動作。
| 參數 | |
|---|---|
listener |
ITestInvocationListener:原始 ITestInvocationListener,用於回報結果。 |
exception |
boolean:如果在測試中發生例外狀況,則為 True。 |
elapsedTime |
long:執行測試所需的時間。 |
preRun
protected void preRun ()
在執行測試前進行設定。
testTmpDirClean
protected void testTmpDirClean (File tmpDir,
ITestInvocationListener listener)額外測試,確保子程序中的單元測試不會建立任何檔案,且不會清除檔案。
| 參數 | |
|---|---|
tmpDir |
File:子程序的暫時目錄。 |
listener |
ITestInvocationListener:回報測試結果的 ITestInvocationListener。 |