测试调用
public interface ITestInvocation
com.android.tradefed.invoker.ITestInvocation |
处理一个 TradeFederation 测试调用。
概括
嵌套类 | |
---|---|
class | ITestInvocation.ExitInformation 表示调用的一些退出信息。 |
公共方法 | |
---|---|
default ITestInvocation.ExitInformation | getExitInfo () 给定调用的退出信息。 |
abstract void | invoke (IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners) 执行测试调用。 |
default void | notifyInvocationStopped (String message, ErrorIdentifier errorId) 通知 |
公共方法
获取退出信息
public ITestInvocation.ExitInformation getExitInfo ()
给定调用的退出信息。
退货 | |
---|---|
ITestInvocation.ExitInformation |
调用
public abstract void invoke (IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
执行测试调用。
参数 | |
---|---|
metadata | IInvocationContext :在IInvocationContext 进行测试。 |
config | IConfiguration :在IConfiguration 此试运行。 |
rescheduler | IRescheduler :所述IRescheduler ,用于在另一资源上重新调度的调用来执行的部分(S) |
extraListeners | ITestInvocationListener : ITestInvocationListener s到通知,除了那些config |
投掷 | |
---|---|
DeviceNotAvailableException | 如果与设备的通信丢失 |
Throwable |
通知调用已停止
public void notifyInvocationStopped (String message, ErrorIdentifier errorId)
通知TestInvocation
是TradeFed被要求停止。
参数 | |
---|---|
message | String :与停止调用相关的消息 |
errorId | ErrorIdentifier |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.
[{
"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":"其他"
}]