PythonBinaryHost測試

public class PythonBinaryHostTest
extends Object implements IRemoteTest , ITestFilterReceiver

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


主機測試意味著從 Android 建置系統運行 python 二進位檔案 (Soong)

測試運行程序支援包含過濾器和排除過濾器。請注意,排除過濾器的工作原理是忽略測試結果,而不是跳過實際測試。排除過濾器中指定的測試仍將執行。

概括

嵌套類

class PythonBinaryHostTest.PythonForwarder

結果轉發器用二進位名稱取代運行名稱。

領域

protected static final String ANDROID_SERIAL_VAR

protected static final String LD_LIBRARY_PATH

公共構造函數

PythonBinaryHostTest ()

公共方法

void addAllExcludeFilters ( filters) addAllExcludeFilters ( filters)

新增要排除的測試的過濾器的ERROR(/Set)

void addAllIncludeFilters ( filters) 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)

運行測試,並將結果報告給偵聽器。

領域

ANDROID_SERIAL_VAR

protected static final String ANDROID_SERIAL_VAR

LD_LIBRARY_PATH

protected static final String LD_LIBRARY_PATH

公共構造函數

PythonBinaryHost測試

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

刪除目前追蹤的所有排除過濾器。

清除包含過濾器

public void clearIncludeFilters ()

刪除目前追蹤的所有包含過濾器。

取得排除過濾器

public  getExcludeFilters ()

傳回排除過濾器的目前ERROR(/Set)

退貨

取得包含過濾器

public  getIncludeFilters ()

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

退貨

跑步

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

運行測試,並將結果報告給偵聽器。

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

listener ITestInvocationListener :測試結果的ITestInvocationListener

投擲
DeviceNotAvailableException