PythonBinaryHostTest
public class PythonBinaryHostTest
extends Object
implements IRemoteTest , ITestFilterReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.python.PythonBinaryHostTest |
主機測試意味著從 Android 構建系統 (Soong) 運行 python 二進製文件
測試運行器支持 include-filter 和 exclude-filter。請注意,exclude-filter 的工作原理是忽略測試結果,而不是跳過實際測試。 exclude-filter 中指定的測試仍將執行。
概括
嵌套類 | |
---|---|
class | PythonBinaryHostTest.PythonForwarder 結果轉發器用二進制名稱替換運行名稱。 |
字段 | |
---|---|
protected static final String | ANDROID_SERIAL_VAR |
protected static final String | LD_LIBRARY_PATH
|
公共構造函數 | |
---|---|
PythonBinaryHostTest () |
公共方法 | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) 添加要排除的測試的過濾器的 |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) 添加要包含哪些測試的過濾器的 |
void | addExcludeFilter (String filter) 添加要排除哪些測試的過濾器。 |
void | addIncludeFilter (String filter) 添加要包含哪些測試的過濾器。 |
void | clearExcludeFilters () 刪除當前跟踪的所有排除過濾器。 |
void | clearIncludeFilters () 刪除當前跟踪的所有包含過濾器。 |
getExcludeFilters () 返回排除過濾器的當前 | |
getIncludeFilters () 返回包含過濾器的當前 | |
final void | run ( TestInformation testInfo, ITestInvocationListener listener) 運行測試,並將結果報告給偵聽器。 |
字段
ANDROID_SERIAL_VAR
protected static final String ANDROID_SERIAL_VAR
LD_LIBRARY_PATH
protected static final String LD_LIBRARY_PATH
公共構造函數
PythonBinaryHostTest
public PythonBinaryHostTest ()
公共方法
添加排除過濾器
public void addExcludeFilter (String filter)
添加要排除哪些測試的過濾器。
參數 | |
---|---|
filter | String |
添加包含過濾器
public void addIncludeFilter (String filter)
添加要包含哪些測試的過濾器。
參數 | |
---|---|
filter | String |
清除排除過濾器
public void clearExcludeFilters ()
刪除當前跟踪的所有排除過濾器。
清除包含過濾器
public void clearIncludeFilters ()
刪除當前跟踪的所有包含過濾器。
跑步
public final void run (TestInformation testInfo, ITestInvocationListener listener)
運行測試,並將結果報告給偵聽器。
參數 | |
---|---|
testInfo | TestInformation :包含運行測試的有用信息的TestInformation 對象。 |
listener | ITestInvocationListener : 測試結果的ITestInvocationListener |
投擲 | |
---|---|
DeviceNotAvailableException |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-03-30 (世界標準時間)。
[]
[]