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 中指定的測試。

摘要

巢狀類別

class PythonBinaryHostTest.PythonForwarder

結果轉送器,可將執行名稱替換為二進位名稱。 

常數

String ANDROID_SERIAL_VAR

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)

Runs the tests, and reports result to the listener.

常數

ANDROID_SERIAL_VAR

protected static final String ANDROID_SERIAL_VAR

常數值: "ANDROID_SERIAL"

LD_LIBRARY_PATH

protected static final String LD_LIBRARY_PATH

常數值: "LD_LIBRARY_PATH"

公用建構函式

PythonBinaryHostTest

public PythonBinaryHostTest ()

公用方法

addAllExcludeFilters

public void addAllExcludeFilters ( filters)

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

參數
filters

addAllIncludeFilters

public void addAllIncludeFilters ( filters)

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

參數
filters

addExcludeFilter

public void addExcludeFilter (String filter)

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

參數
filter String

addIncludeFilter

public void addIncludeFilter (String filter)

新增要納入的測試篩選條件。

參數
filter String

clearExcludeFilters

public void clearExcludeFilters ()

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

clearIncludeFilters

public void clearIncludeFilters ()

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

getExcludeFilters

public  getExcludeFilters ()

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

傳回

getIncludeFilters

public  getIncludeFilters ()

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

傳回

得分

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

執行測試,並向接聽程式回報結果。

參數
testInfo TestInformation:包含執行測試的實用資訊的 TestInformation 物件。

listener ITestInvocationListener:測試結果的 ITestInvocationListener

擲回
DeviceNotAvailableException