ModuleListener
public
class
ModuleListener
extends CollectingTestListener
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.testtype.suite.ModuleListener |
Detektor dołączony do każdego IRemoteTest
każdego modułu w celu zebrania listy wyników.
Podsumowanie
Konstruktory publiczne | |
---|---|
ModuleListener(ITestInvocationListener listener)
Konstruktor. |
Metody publiczne | |
---|---|
boolean
|
hasLastAttemptFailed()
Zwraca informację, czy ostatnia sesja próby nasłuchiwania się zakończyła niepowodzeniem. |
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
setAttemptIsolation(CurrentInvocation.IsolationGrade isolation)
Określa, czy próba powinna być zaraportowana jako próba pojedyncza. |
void
|
setCollectTestsOnly(boolean collectTestsOnly)
Określa, czy zbieramy tylko testy. |
void
|
setMarkTestsSkipped(boolean skip)
Określ, czy wszystkie przypadki testowe mają być pominięte. |
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)
|
Konstruktory publiczne
ModuleListener
public ModuleListener (ITestInvocationListener listener)
Konstruktor.
Parametry | |
---|---|
listener |
ITestInvocationListener |
Metody publiczne
hasLastAttemptFailed
public boolean hasLastAttemptFailed ()
Zwraca informację, czy ostatnia sesja próby nasłuchiwania się zakończyła niepowodzeniem.
Zwroty | |
---|---|
boolean |
logAssociation
public void logAssociation (String dataName, LogFile logFile)
Parametry | |
---|---|
dataName |
String |
logFile |
LogFile |
setAttemptIsolation
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
Określa, czy próba powinna być zaraportowana jako próba pojedyncza.
Parametry | |
---|---|
isolation |
CurrentInvocation.IsolationGrade |
setCollectTestsOnly
public void setCollectTestsOnly (boolean collectTestsOnly)
Określa, czy zbieramy tylko testy.
Parametry | |
---|---|
collectTestsOnly |
boolean |
setMarkTestsSkipped
public void setMarkTestsSkipped (boolean skip)
Określ, czy wszystkie przypadki testowe mają być pominięte.
Parametry | |
---|---|
skip |
boolean |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, String trace)
Parametry | |
---|---|
test |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, FailureDescription failure)
Parametry | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
Parametry | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testEnded
public void testEnded (TestDescription test,testMetrics)
Parametry | |
---|---|
test |
TestDescription |
testMetrics |
|
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
Parametry | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test, String trace)
Parametry | |
---|---|
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
Parametry | |
---|---|
test |
TestDescription |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
Parametry | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
Parametry | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
Parametry | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
Parametry | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
Parametry | |
---|---|
errorMessage |
String |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber)
Parametry | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber, long startTime)
Parametry | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
startTime |
long |
testStarted
public void testStarted (TestDescription test, long startTime)
Parametry | |
---|---|
test |
TestDescription |
startTime |
long |