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)

添加要排除的测试的过滤器的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

公共构造函数

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

删除当前跟踪的所有排除过滤器。

清除包含过滤器

public void clearIncludeFilters ()

删除当前跟踪的所有包含过滤器。

获取排除过滤器

public  getExcludeFilters ()

返回排除过滤器的当前ERROR(/Set)

退货

getIncludeFilters

public  getIncludeFilters ()

返回包含过滤器的当前ERROR(/Set)

退货

跑步

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

运行测试,并将结果报告给侦听器。

参数
testInfo TestInformation :包含运行测试的有用信息的TestInformation对象。

listener ITestInvocationListener : 测试结果的ITestInvocationListener

投掷
DeviceNotAvailableException