모듈 리스너
public class ModuleListener
extends CollectingTestListener
수신기는 각각의 부착 IRemoteTest
결과 목록을 수집하기 위해 각 모듈.
요약
공개 메서드 |
---|
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, testMetrics) testEnded (TestDescription test, long endTime, testMetrics) |
void | testEnded (TestDescription test, testMetrics) testEnded (TestDescription test, testMetrics) |
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, runMetrics) testRunEnded (long elapsedTime, runMetrics) |
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 ModuleListener (ITestInvocationListener listener)
건설자.
매개변수 |
---|
listener | ITestInvocationListener |
공개 메서드
hasLastAttemptFailed
public boolean hasLastAttemptFailed ()
수신기의 마지막 재시도 세션이 실패했는지 여부를 반환합니다.
로그 협회
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 |
setMarkTests건너뜀
public void setMarkTestsSkipped (boolean skip)
모든 테스트 케이스를 건너뛴 것으로 표시할지 여부입니다.
테스트 가정 실패
public void testAssumptionFailure (TestDescription test,
String trace)
매개변수 |
---|
test | TestDescription |
trace | String |
테스트 가정 실패
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
매개변수 |
---|
test | TestDescription |
failure | FailureDescription |
테스트 종료
public void testEnded (TestDescription test,
long endTime,
testMetrics)
매개변수 |
---|
test | TestDescription |
endTime | long |
testMetrics | |
테스트 종료
public void testEnded (TestDescription test,
testMetrics)
매개변수 |
---|
test | TestDescription |
testMetrics | |
테스트 실패
public void testFailed (TestDescription test,
FailureDescription failure)
매개변수 |
---|
test | TestDescription |
failure | FailureDescription |
테스트 실패
public void testFailed (TestDescription test,
String trace)
매개변수 |
---|
test | TestDescription |
trace | String |
테스트 무시
public void testIgnored (TestDescription test)
매개변수 |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
매개변수 |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
매개변수 |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
테스트 실행 종료
public void testRunEnded (long elapsedTime,
runMetrics)
매개변수 |
---|
elapsedTime | long |
runMetrics | |
테스트 실행 실패
public void testRunFailed (FailureDescription failure)
매개변수 |
---|
failure | FailureDescription |
테스트 실행 실패
public void testRunFailed (String errorMessage)
테스트 실행 시작됨
public void testRunStarted (String name,
int numTests,
int attemptNumber)
매개변수 |
---|
name | String |
numTests | int |
attemptNumber | int |
테스트 실행 시작됨
public void testRunStarted (String name,
int numTests,
int attemptNumber,
long startTime)
매개변수 |
---|
name | String |
numTests | int |
attemptNumber | int |
startTime | long |
테스트 시작됨
public void testStarted (TestDescription test,
long startTime)
매개변수 |
---|
test | TestDescription |
startTime | long |