ITestInvocation
public
interface
ITestInvocation
com.android.tradefed.invoker.ITestInvocation |
Handles one TradeFederation test invocation.
Summary
Nested classes | |
---|---|
class |
ITestInvocation.ExitInformation
Represents some exit information for an invocation. |
Public methods | |
---|---|
default
ITestInvocation.ExitInformation
|
getExitInfo()
The exit information of the given invocation. |
abstract
void
|
invoke(IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
Perform the test invocation. |
default
void
|
notifyInvocationStopped(String message, ErrorIdentifier errorId)
Notify the |
Public methods
getExitInfo
public ITestInvocation.ExitInformation getExitInfo ()
The exit information of the given invocation.
Returns | |
---|---|
ITestInvocation.ExitInformation |
invoke
public abstract void invoke (IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
Perform the test invocation.
Parameters | |
---|---|
metadata |
IInvocationContext : the IInvocationContext to perform tests. |
config |
IConfiguration : the IConfiguration of this test run. |
rescheduler |
IRescheduler : the IRescheduler , for rescheduling portions of the invocation for
execution on another resource(s) |
extraListeners |
ITestInvocationListener : ITestInvocationListener s to notify, in addition to those in
config |
Throws | |
---|---|
DeviceNotAvailableException |
if communication with device was lost |
Throwable |
notifyInvocationStopped
public void notifyInvocationStopped (String message, ErrorIdentifier errorId)
Notify the TestInvocation
that TradeFed has been requested to stop.
Parameters | |
---|---|
message |
String : The message associated with stopping the invocation
|
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 2022-08-03 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]