ModuleListener
public
class
ModuleListener
extends CollectingTestListener
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.testtype.suite.ModuleListener |
Listener attached to each IRemoteTest
of each module in order to collect the list of
results.
Summary
Public constructors | |
---|---|
ModuleListener(ITestInvocationListener listener)
Constructor. |
Public methods | |
---|---|
boolean
|
hasLastAttemptFailed()
Returns whether or not the listener last retry session has failed. |
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
setAttemptIsolation(CurrentInvocation.IsolationGrade isolation)
Sets whether or not the attempt should be reported as isolated. |
void
|
setCollectTestsOnly(boolean collectTestsOnly)
Sets whether or not we are only collecting the tests. |
void
|
setMarkTestsSkipped(boolean skip)
Whether or not to mark all the test cases skipped. |
void
|
testAssumptionFailure(TestDescription test, String trace)
|
void
|
testAssumptionFailure(TestDescription test, FailureDescription failure)
|
void
|
testEnded(TestDescription test, long endTime,
|
void
|
testEnded(TestDescription test,
|
void
|
testFailed(TestDescription test, FailureDescription failure)
|
void
|
testFailed(TestDescription test, String trace)
|
void
|
testIgnored(TestDescription test)
|
void
|
testLog(String dataName, LogDataType dataType, InputStreamSource dataStream)
|
void
|
testLogSaved(String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
|
void
|
testRunEnded(long elapsedTime,
|
void
|
testRunFailed(FailureDescription failure)
|
void
|
testRunFailed(String errorMessage)
|
void
|
testRunStarted(String name, int numTests, int attemptNumber)
|
void
|
testRunStarted(String name, int numTests, int attemptNumber, long startTime)
|
void
|
testStarted(TestDescription test, long startTime)
|
Public constructors
ModuleListener
public ModuleListener (ITestInvocationListener listener)
Constructor.
Parameters | |
---|---|
listener |
ITestInvocationListener |
Public methods
hasLastAttemptFailed
public boolean hasLastAttemptFailed ()
Returns whether or not the listener last retry session has failed.
Returns | |
---|---|
boolean |
logAssociation
public void logAssociation (String dataName, LogFile logFile)
Parameters | |
---|---|
dataName |
String |
logFile |
LogFile |
setAttemptIsolation
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
Sets whether or not the attempt should be reported as isolated.
Parameters | |
---|---|
isolation |
CurrentInvocation.IsolationGrade |
setCollectTestsOnly
public void setCollectTestsOnly (boolean collectTestsOnly)
Sets whether or not we are only collecting the tests.
Parameters | |
---|---|
collectTestsOnly |
boolean |
setMarkTestsSkipped
public void setMarkTestsSkipped (boolean skip)
Whether or not to mark all the test cases skipped.
Parameters | |
---|---|
skip |
boolean |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, String trace)
Parameters | |
---|---|
test |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, FailureDescription failure)
Parameters | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
Parameters | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testEnded
public void testEnded (TestDescription test,testMetrics)
Parameters | |
---|---|
test |
TestDescription |
testMetrics |
|
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
Parameters | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test, String trace)
Parameters | |
---|---|
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
Parameters | |
---|---|
test |
TestDescription |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Parameters | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
Parameters | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
Parameters | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
Parameters | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Parameters | |
---|---|
errorMessage |
String |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber)
Parameters | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber, long startTime)
Parameters | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
startTime |
long |
testStarted
public void testStarted (TestDescription test, long startTime)
Parameters | |
---|---|
test |
TestDescription |
startTime |
long |