to top
public class

TestInvocation

extends Object
implements ITestInvocation
java.lang.Object
   ↳ com.android.tradefed.invoker.TestInvocation

Class Overview

Default implementation of ITestInvocation.

Loads major objects based on IConfiguration - retrieves build - prepares target - runs tests - reports results

Summary

Constants
String BATT_TAG
String BUILD_ERROR_BUGREPORT_NAME
String DEVICE_LOG_NAME
String DEVICE_UNRESPONSIVE_BUGREPORT_NAME
String EMULATOR_LOG_NAME
String INVOCATION_ENDED_BUGREPORT_NAME
String TARGET_SETUP_ERROR_BUGREPORT_NAME
String TRADEFED_LOG_NAME
Public Constructors
TestInvocation()
Public Methods
void invoke(ITestDevice device, IConfiguration config, IRescheduler rescheduler, ITestInvocationListener... extraListeners)
Perform the test invocation.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.invoker.ITestInvocation

Constants

static final String BATT_TAG

Constant Value: "[battery level]"

static final String BUILD_ERROR_BUGREPORT_NAME

Constant Value: "build_error_bugreport"

static final String DEVICE_LOG_NAME

Constant Value: "device_logcat"

static final String DEVICE_UNRESPONSIVE_BUGREPORT_NAME

Constant Value: "device_unresponsive_bugreport"

static final String EMULATOR_LOG_NAME

Constant Value: "emulator_log"

static final String INVOCATION_ENDED_BUGREPORT_NAME

Constant Value: "invocation_ended_bugreport"

static final String TARGET_SETUP_ERROR_BUGREPORT_NAME

Constant Value: "target_setup_error_bugreport"

static final String TRADEFED_LOG_NAME

Constant Value: "host_log"

Public Constructors

public TestInvocation ()

Public Methods

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

Perform the test invocation.

Parameters
device ITestDevice: the ITestDevice to perform tests. May be null if tests to run are not dependent on a device
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
Throwable

public String toString ()

Returns
String