測試調用
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":"其他"
}]