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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-12-04 UTC.