ITestInvocation

public interface ITestInvocation

com.android.tradefed.invoker.ITestInvocation
Known Indirect Subclasses
TestInvocation Default implementation of ITestInvocation


Handles one TradeFederation test invocation.

Summary

Public methods

abstract void invoke(IInvocationContext metadata, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)

Perform the test invocation.

abstract void invoke(ITestDevice device, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)

This method is deprecated. Use invoke(IInvocationContext, IConfiguration, IRescheduler, ITestInvocationListener) instead.

Public methods

invoke

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

invoke

void invoke (ITestDevice device, 
                IConfiguration config, 
                IRescheduler rescheduler, 
                ITestInvocationListener... extraListeners)

This method is deprecated.
Use invoke(IInvocationContext, IConfiguration, IRescheduler, ITestInvocationListener) instead.

Perform the test invocation. FIXME: Remove when fully moved to new interface.

Parameters
device ITestDevice: the ITestDevice 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
Throwable