ModuleListener
public class ModuleListener
extends CollectingTestListener
מאזין מצורף לכול 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, 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) |
בוני ציבור
ModuleListener
public ModuleListener (ITestInvocationListener listener)
בַּנַאִי.
פרמטרים |
---|
listener | ITestInvocationListener |
שיטות ציבוריות
hasLastAttempt נכשל
public boolean hasLastAttemptFailed ()
מחזירה אם ההפעלה של הניסיון המאוחר האחרון של המאזין נכשלה.
אגודה log
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)
האם לסמן או לא לסמן את כל מקרי הבדיקה.
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 | |
מבחן נכשל
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 |
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 |