IInstrumentationResultParser

public interface IInstrumentationResultParser
implements IShellOutputReceiver

com.android.ddmlib.testrunner.IInstrumentationResultParser


Interface for parsing the results of an instrumentation test run from shell.

Summary

Nested classes

class IInstrumentationResultParser.SessionResultCodes

Am instrument session result codes. 

class IInstrumentationResultParser.StatusCodes

Test result status codes. 

class IInstrumentationResultParser.StatusKeys

Relevant test status keys. 

Public methods

abstract void cancel()

Requests cancellation of test run.

abstract void handleTestRunFailed(String errorMsg)

This method is called when "am instrument" command crashes with an exception.

Public methods

cancel

public abstract void cancel ()

Requests cancellation of test run.

handleTestRunFailed

public abstract void handleTestRunFailed (String errorMsg)

This method is called when "am instrument" command crashes with an exception. All registered listeners should be notified ITestRunListener.testRunFailed followed by ITestRunListener.testRunEnded(long, ) if the crash happens during the test execution.

Parameters
errorMsg String