ConsoleResultReporter
public class ConsoleResultReporter
extends TestResultListener
implements ILogSaverListener, ITestInvocationListener
گزارشگر نتیجه برای چاپ نتایج آزمایش در کنسول.
هر آزمایش، هر مورد آزمایشی، و معیارهای آزمایش، گزارشهای آزمایشی و مکانهای فایل آزمایشی را چاپ میکند.
خلاصه
سازندگان عمومی
ConsoleResultReporter
public ConsoleResultReporter ()
روش های عمومی
فراخوان پایان یافت
public void invocationEnded (long elapsedTime)
مولفه های |
---|
elapsedTime | long |
invocationStarted
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 |