ModuleListener
public
class
ModuleListener
extends CollectingTestListener
java.lang.Object | ||
↳ | com.android.tradefed.result.CollectingTestListener | |
↳ | com.android.tradefed.testtype.suite.ModuleListener |
결과 목록을 수집하기 위해 각 모듈의 각 IRemoteTest
에 연결된 리스너입니다.
요약
공개 생성자 | |
---|---|
ModuleListener(ITestInvocationListener listener)
생성자입니다. |
공개 메서드 | |
---|---|
boolean
|
hasLastAttemptFailed()
리스너의 마지막 재시도 세션이 실패했는지 여부를 반환합니다. |
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
setAttemptIsolation(CurrentInvocation.IsolationGrade isolation)
시도를 고립된 것으로 보고할지 여부를 설정합니다. |
void
|
setCollectTestsOnly(boolean collectTestsOnly)
테스트만 수집할지 여부를 설정합니다. |
void
|
setMarkTestsSkipped(boolean skip)
건너뛴 모든 테스트 사례를 표시할지 여부입니다. |
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)
|
공개 생성자
ModuleListener
public ModuleListener (ITestInvocationListener listener)
생성자입니다.
매개변수 | |
---|---|
listener |
ITestInvocationListener |
공개 메서드
hasLastAttemptFailed
public boolean hasLastAttemptFailed ()
리스너의 마지막 재시도 세션이 실패했는지 여부를 반환합니다.
반환 값 | |
---|---|
boolean |
logAssociation
public void logAssociation (String dataName, LogFile logFile)
매개변수 | |
---|---|
dataName |
String |
logFile |
LogFile |
setAttemptIsolation
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
시도를 고립된 것으로 보고할지 여부를 설정합니다.
매개변수 | |
---|---|
isolation |
CurrentInvocation.IsolationGrade |
setCollectTestsOnly
public void setCollectTestsOnly (boolean collectTestsOnly)
테스트만 수집할지 여부를 설정합니다.
매개변수 | |
---|---|
collectTestsOnly |
boolean |
setMarkTestsSkipped
public void setMarkTestsSkipped (boolean skip)
건너뛴 모든 테스트 사례를 표시할지 여부입니다.
매개변수 | |
---|---|
skip |
boolean |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, String trace)
매개변수 | |
---|---|
test |
TestDescription |
trace |
String |
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, FailureDescription failure)
매개변수 | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics)
매개변수 | |
---|---|
test |
TestDescription |
endTime |
long |
testMetrics |
|
testEnded
public void testEnded (TestDescription test,testMetrics)
매개변수 | |
---|---|
test |
TestDescription |
testMetrics |
|
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
매개변수 | |
---|---|
test |
TestDescription |
failure |
FailureDescription |
testFailed
public void testFailed (TestDescription test, String trace)
매개변수 | |
---|---|
test |
TestDescription |
trace |
String |
testIgnored
public void testIgnored (TestDescription test)
매개변수 | |
---|---|
test |
TestDescription |
testLog
public void testLog (String dataName, LogDataType dataType, InputStreamSource dataStream)
매개변수 | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
testLogSaved
public void testLogSaved (String dataName, LogDataType dataType, InputStreamSource dataStream, LogFile logFile)
매개변수 | |
---|---|
dataName |
String |
dataType |
LogDataType |
dataStream |
InputStreamSource |
logFile |
LogFile |
testRunEnded
public void testRunEnded (long elapsedTime,runMetrics)
매개변수 | |
---|---|
elapsedTime |
long |
runMetrics |
|
testRunFailed
public void testRunFailed (FailureDescription failure)
매개변수 | |
---|---|
failure |
FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
매개변수 | |
---|---|
errorMessage |
String |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber)
매개변수 | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
testRunStarted
public void testRunStarted (String name, int numTests, int attemptNumber, long startTime)
매개변수 | |
---|---|
name |
String |
numTests |
int |
attemptNumber |
int |
startTime |
long |
testStarted
public void testStarted (TestDescription test, long startTime)
매개변수 | |
---|---|
test |
TestDescription |
startTime |
long |