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 notifyInvocationForceStopped(String message, ErrorIdentifier errorId)

Notify the TestInvocation that TradeFed has been requested to stop.

default void notifyInvocationStopped(String message)

Notify the TestInvocation that TradeFed will eventually shutdown.

default void setClearcutClient(ClearcutClient client)

Forward the clearcut client to report metrics.

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

notifyInvocationForceStopped

public void notifyInvocationForceStopped (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: Identifier associated with the forced stop

notifyInvocationStopped

public void notifyInvocationStopped (String message)

Notify the TestInvocation that TradeFed will eventually shutdown.

Parameters
message String: The message associated with stopping the invocation

setClearcutClient

public void setClearcutClient (ClearcutClient client)

Forward the clearcut client to report metrics.

Parameters
client ClearcutClient