to top
public interface

ITargetCleaner

implements ITargetPreparer
com.android.tradefed.targetprep.ITargetCleaner
Known Indirect Subclasses

Class Overview

Cleans up the target device after the test run has finished.

For example, installs software, tweaks env settings for testing, launches targets etc.

Note that multiple ITargetPreparer can specified in a configuration. It is recommended that each ITargetPreparer clearly document its expected environment pre-setup and post-setUp. e.g. a ITargetPreparer that configures a device for testing must be run after the ITargetPreparer that installs software.

Summary

Public Methods
abstract void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)
Perform the target cleanup/teardown after testing.
[Expand]
Inherited Methods
From interface com.android.tradefed.targetprep.ITargetPreparer

Public Methods

public abstract void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)

Perform the target cleanup/teardown after testing.

Parameters
device the ITestDevice to prepare.
buildInfo data about the build under test.
e if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.
Throws
DeviceNotAvailableException if device became unresponsive