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) 添加要排除的测试的过滤器的 |
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
公共构造函数
PythonBinaryHost测试
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-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]