PythonBinaryHostTest

public class PythonBinaryHostTest
extends Object implements IConfigurationReceiver, IRemoteTest, ITestFilterReceiver

java.lang.Object
   ↳ com.android.tradefed.testtype.python.PythonBinaryHostTest


主機測試旨在從 Android Build 系統 (Soong) 執行 Python 二進位檔檔案

測試執行工具支援「包含」篩選器和「排除」篩選器。請注意,「排除篩選器」的運作方式 忽略測試結果,不要略過實際測試。在 「排除」篩選器仍會執行。

摘要

巢狀類別

class PythonBinaryHostTest.PythonForwarder

將執行作業名稱替換為二進位檔名稱的結果轉發器。 

欄位

protected static final String ANDROID_SERIAL_VAR

protected static final String LD_LIBRARY_PATH

公用建構函式

PythonBinaryHostTest()

公用方法

void addAllExcludeFilters( filters)

新增要排除測試的篩選器 ERROR(/Set)

void addAllIncludeFilters( filters)

新增要納入測試的篩選器 ERROR(/Set)

void addExcludeFilter(String filter)

新增篩選器,篩選出要排除的測試。

void addIncludeFilter(String filter)

新增篩選器,選取要納入的測試。

void clearExcludeFilters()

刪除目前追蹤的所有「排除」篩選器。

void clearIncludeFilters()

刪除目前追蹤的所有「包含」篩選器。

getExcludeFilters()

傳回目前 ERROR(/Set) 的「排除」篩選器。

getIncludeFilters()

傳回「包含」篩選器的目前 ERROR(/Set)

final void run(TestInformation testInfo, ITestInvocationListener listener)

執行測試,並將結果回報給事件監聽器。

void setConfiguration(IConfiguration configuration)

插入使用中的 IConfiguration

欄位

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 addAllExcludeFilters ( filters)

新增要排除測試的篩選器 ERROR(/Set)

參數
filters

加入所有篩選器

public void addAllIncludeFilters ( filters)

新增要納入測試的篩選器 ERROR(/Set)

參數
filters

新增排除篩選器

public void addExcludeFilter (String filter)

新增篩選器,篩選出要排除的測試。

參數
filter String

加入篩選器

public void addIncludeFilter (String filter)

新增篩選器,選取要納入的測試。

參數
filter String

清除排除篩選器

public void clearExcludeFilters ()

刪除目前追蹤的所有「排除」篩選器。

ClearIncludeFilters

public void clearIncludeFilters ()

刪除目前追蹤的所有「包含」篩選器。

取得排除篩選器

public  getExcludeFilters ()

傳回目前 ERROR(/Set) 的「排除」篩選器。

傳回

getIncludeFilters

public  getIncludeFilters ()

傳回「包含」篩選器的目前 ERROR(/Set)

傳回

得分

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

執行測試,並將結果回報給事件監聽器。

參數
testInfo TestInformationTestInformation 物件,包含可執行的實用資訊 測試。

listener ITestInvocationListener:測試結果的 ITestInvocationListener

擲回
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

插入使用中的 IConfiguration

參數
configuration IConfiguration