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: ITestInvocationListeners 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.