| java.lang.Object |
| ↳ |
android.support.test.orchestrator.listeners.OrchestrationRunListener |
| |
↳ |
android.support.test.orchestrator.listeners.OrchestrationXmlTestRunListener |
Class Overview
Writes JUnit results to an XML files in a format consistent with Ant's XMLJUnitResultFormatter.
Creates a separate XML file per test run.
This is a copy of com.android.ddmlib.testrunner.XmlTestRunListener made specificly for
AndroidTestOrchestrator. Changes include:
- makes code android-compatible.
- extends
ERROR(/OrchestrationRunListener) instead of implementing the similar com.android.ddmlib.testrunner.ITestRunListener interface to easily attach it to AndroidTestOrchestrator.
- writes XML to /sdcard/odo/ by default.
- prints start-time and end-time of each test in XML.
- fixes a few java coding style problems.
Summary
|
[Expand]
Inherited Methods |
From class
android.support.test.orchestrator.listeners.OrchestrationRunListener
|
Instrumentation
|
getInstrumentation()
|
|
void
|
orchestrationRunStarted(int arg0)
|
|
void
|
setInstrumentation(Instrumentation arg0)
|
|
void
|
testAssumptionFailure(ParcelableFailure arg0)
|
|
void
|
testFailure(ParcelableFailure arg0)
|
|
void
|
testFinished(ParcelableDescription arg0)
|
|
void
|
testIgnored(ParcelableDescription arg0)
|
|
void
|
testProcessFinished(String arg0)
|
|
void
|
testRunFinished(ParcelableResult arg0)
|
|
void
|
testRunStarted(ParcelableDescription arg0)
|
|
void
|
testStarted(ParcelableDescription arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
Constants
public
static
final
String
REPORT_DIRECTORY_NAME
Public Constructors
public
OrchestrationXmlTestRunListener
()
Public Methods
public
TestRunResult
getRunResult
()
Returns the TestRunResult
| Returns |
TestRunResult |
the test run results.
|
public
void
orchestrationRunFinished
()
public
void
orchestrationRunStarted
(int testCount)
public
void
setHostName
(String hostName)
| Parameters |
hostName |
String |
public
void
setReportDir
(File file)
Sets the report file to use.
public
void
testAssumptionFailure
(ParcelableFailure failure)
| Parameters |
failure |
ParcelableFailure |
public
void
testFailure
(ParcelableFailure failure)
| Parameters |
failure |
ParcelableFailure |
public
void
testFinished
(ParcelableDescription description)
| Parameters |
description |
ParcelableDescription |
public
void
testIgnored
(ParcelableDescription description)
| Parameters |
description |
ParcelableDescription |
public
void
testProcessFinished
(String message)
| Parameters |
message |
String |
public
void
testRunFinished
(ParcelableResult result)
| Parameters |
result |
ParcelableResult |
public
void
testRunStarted
(ParcelableDescription description)
| Parameters |
description |
ParcelableDescription |
public
void
testStarted
(ParcelableDescription description)
| Parameters |
description |
ParcelableDescription |
Protected Methods
protected
File
getResultFile
(File reportDir)
Creates a File where the report will be created.
| Parameters |
reportDir |
File: the root directory of the report. |
protected
String
getTestName
(TestIdentifier testId)
| Parameters |
testId |
TestIdentifier |
protected
String
getTestSuiteName
()