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 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-03-30。
[]
[]