public class AndroidTestRunListener extends Object implements com.android.ddmlib.testrunner.ITestRunListener
Constructor and Description |
---|
AndroidTestRunListener(com.android.ddmlib.IDevice device,
org.apache.maven.plugin.logging.Log log,
Boolean createReport,
Boolean takeScreenshotOnFailure,
String screenshotsPathOnDevice,
String reportSuffix,
File targetDirectory)
Create a new test run listener.
|
Modifier and Type | Method and Description |
---|---|
String |
getExceptionMessages() |
org.apache.maven.plugin.logging.Log |
getLog() |
String |
getTestRunFailureCause() |
boolean |
hasFailuresOrErrors() |
void |
testAssumptionFailure(com.android.ddmlib.testrunner.TestIdentifier testIdentifier,
String trace) |
void |
testEnded(com.android.ddmlib.testrunner.TestIdentifier testIdentifier,
Map<String,String> testMetrics) |
void |
testFailed(com.android.ddmlib.testrunner.TestIdentifier testIdentifier,
String trace) |
void |
testIgnored(com.android.ddmlib.testrunner.TestIdentifier testIdentifier) |
void |
testRunEnded(long elapsedTime,
Map<String,String> runMetrics) |
boolean |
testRunFailed() |
void |
testRunFailed(String errorMessage) |
void |
testRunStarted(String runName,
int tCount) |
void |
testRunStopped(long elapsedTime) |
void |
testStarted(com.android.ddmlib.testrunner.TestIdentifier testIdentifier) |
boolean |
threwException() |
public AndroidTestRunListener(com.android.ddmlib.IDevice device, org.apache.maven.plugin.logging.Log log, Boolean createReport, Boolean takeScreenshotOnFailure, String screenshotsPathOnDevice, String reportSuffix, File targetDirectory)
device
- the device on which test is executed.public org.apache.maven.plugin.logging.Log getLog()
public void testRunStarted(String runName, int tCount)
testRunStarted
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testIgnored(com.android.ddmlib.testrunner.TestIdentifier testIdentifier)
testIgnored
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testStarted(com.android.ddmlib.testrunner.TestIdentifier testIdentifier)
testStarted
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testFailed(com.android.ddmlib.testrunner.TestIdentifier testIdentifier, String trace)
testFailed
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testAssumptionFailure(com.android.ddmlib.testrunner.TestIdentifier testIdentifier, String trace)
testAssumptionFailure
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testEnded(com.android.ddmlib.testrunner.TestIdentifier testIdentifier, Map<String,String> testMetrics)
testEnded
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testRunEnded(long elapsedTime, Map<String,String> runMetrics)
testRunEnded
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testRunFailed(String errorMessage)
testRunFailed
in interface com.android.ddmlib.testrunner.ITestRunListener
public void testRunStopped(long elapsedTime)
testRunStopped
in interface com.android.ddmlib.testrunner.ITestRunListener
public boolean hasFailuresOrErrors()
public boolean testRunFailed()
public String getTestRunFailureCause()
public boolean threwException()
public String getExceptionMessages()
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.