ConsoleResultReporter
public class ConsoleResultReporter
extends TestResultListener
implements ILogSaverListener, ITestInvocationListener
כתב תוצאות כדי להדפיס את תוצאות הבדיקה למסוף.
מדפיס כל ריצת בדיקה, כל מקרה בדיקה ומדדי בדיקה, יומני בדיקה ומיקומי קבצי בדיקה.
סיכום
בנאים ציבוריים
ConsoleResultReporter
public ConsoleResultReporter ()
שיטות ציבוריות
הקריאה הסתיימה
public void invocationEnded (long elapsedTime)
התראה התחילה
public void invocationStarted (IInvocationContext context)
פרמטרים |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
פרמטרים |
---|
dataName | String |
logFile | LogFile |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
פרמטרים |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
תוצאה של בדיקה
public void testResult (TestDescription test,
TestResult result)
פרמטרים |
---|
test | TestDescription |
result | TestResult |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
metrics)
פרמטרים |
---|
elapsedTimeMillis | long |
metrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
פרמטרים |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
פרמטרים |
---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount)
פרמטרים |
---|
runName | String |
testCount | int |