Trình nghe mô-đun
public class ModuleListener
extends CollectingTestListener
Trình nghe được gắn vào mỗi IRemoteTest
của từng mô-đun để thu thập danh sách kết quả.
Bản tóm tắt
Nhà thầu xây dựng công cộng |
---|
ModuleListener (ITestInvocationListener listener) Người xây dựng. |
Phương pháp công cộng |
---|
boolean | hasLastAttemptFailed () Trả về xem phiên thử lại cuối cùng của người nghe có thất bại hay không. |
void | logAssociation (String dataName, LogFile logFile) |
void | setAttemptIsolation (CurrentInvocation.IsolationGrade isolation) Đặt xem nỗ lực có nên được báo cáo là bị cô lập hay không. |
void | setCollectTestsOnly (boolean collectTestsOnly) Đặt xem chúng tôi có chỉ thu thập các bài kiểm tra hay không. |
void | setMarkTestsSkipped (boolean skip) Có đánh dấu tất cả các trường hợp thử nghiệm bị bỏ qua hay không. |
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) |
Nhà thầu xây dựng công cộng
Trình nghe mô-đun
public ModuleListener (ITestInvocationListener listener)
Người xây dựng.
Thông số |
---|
listener | ITestInvocationListener |
Phương pháp công cộng
hasLastAttempt Thất bại
public boolean hasLastAttemptFailed ()
Trả về xem phiên thử lại cuối cùng của người nghe có thất bại hay không.
logHiệp hội
public void logAssociation (String dataName,
LogFile logFile)
Thông số |
---|
dataName | String |
logFile | LogFile |
setAttemptCô lập
public void setAttemptIsolation (CurrentInvocation.IsolationGrade isolation)
Đặt xem nỗ lực có nên được báo cáo là bị cô lập hay không.
Thông số |
---|
isolation | CurrentInvocation.IsolationGrade |
setCollectTestsOnly
public void setCollectTestsOnly (boolean collectTestsOnly)
Đặt xem chúng tôi có chỉ thu thập các bài kiểm tra hay không.
Thông số |
---|
collectTestsOnly | boolean |
setMarkTestsBỏ qua
public void setMarkTestsSkipped (boolean skip)
Có đánh dấu tất cả các trường hợp thử nghiệm bị bỏ qua hay không.
kiểm traGiả địnhThất bại
public void testAssumptionFailure (TestDescription test,
String trace)
Thông số |
---|
test | TestDescription |
trace | String |
kiểm traGiả địnhThất bại
public void testAssumptionFailure (TestDescription test,
FailureDescription failure)
Thông số |
---|
test | TestDescription |
failure | FailureDescription |
kiểm traĐã kết thúc
public void testEnded (TestDescription test,
long endTime,
testMetrics)
Thông số |
---|
test | TestDescription |
endTime | long |
testMetrics | |
kiểm traĐã kết thúc
public void testEnded (TestDescription test,
testMetrics)
Thông số |
---|
test | TestDescription |
testMetrics | |
thử nghiệm thất bại
public void testFailed (TestDescription test,
FailureDescription failure)
Thông số |
---|
test | TestDescription |
failure | FailureDescription |
thử nghiệm thất bại
public void testFailed (TestDescription test,
String trace)
Thông số |
---|
test | TestDescription |
trace | String |
kiểm traBỏ qua
public void testIgnored (TestDescription test)
Thông số |
---|
test | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Thông số |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Thông số |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
thử nghiệmChạyĐã kết thúc
public void testRunEnded (long elapsedTime,
runMetrics)
Thông số |
---|
elapsedTime | long |
runMetrics | |
thử nghiệm Chạy không thành công
public void testRunFailed (FailureDescription failure)
Thông số |
---|
failure | FailureDescription |
thử nghiệm Chạy không thành công
public void testRunFailed (String errorMessage)
Thông số |
---|
errorMessage | String |
thử nghiệmChạyBắt đầu
public void testRunStarted (String name,
int numTests,
int attemptNumber)
Thông số |
---|
name | String |
numTests | int |
attemptNumber | int |
thử nghiệmChạyBắt đầu
public void testRunStarted (String name,
int numTests,
int attemptNumber,
long startTime)
Thông số |
---|
name | String |
numTests | int |
attemptNumber | int |
startTime | long |
thử nghiệmBắt đầu
public void testStarted (TestDescription test,
long startTime)
Thông số |
---|
test | TestDescription |
startTime | long |