Reporter wyników konsoli
public class ConsoleResultReporter
extends TestResultListener
implements ILogSaverListener, ITestInvocationListener
Reporter wyników umożliwiający wydruk wyników testu na konsoli.
Drukuje każdy przebieg testu, każdy przypadek testowy oraz metryki testów, dzienniki testów i lokalizacje plików testowych.
Streszczenie
Konstruktorzy publiczni
Reporter wyników konsoli
public ConsoleResultReporter ()
Metody publiczne
wywołanieZakończone
public void invocationEnded (long elapsedTime)
Parametry |
---|
elapsedTime | long |
wywołanieRozpoczęte
public void invocationStarted (IInvocationContext context)
Parametry |
---|
context | IInvocationContext |
stowarzyszenie log
public void logAssociation (String dataName,
LogFile logFile)
Parametry |
---|
dataName | String |
logFile | LogFile |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
Parametry |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
wynik testu
public void testResult (TestDescription test,
TestResult result)
Parametry |
---|
test | TestDescription |
result | TestResult |
testRunZakończony
public void testRunEnded (long elapsedTimeMillis,
metrics)
Parametry |
---|
elapsedTimeMillis | long |
metrics | |
testRun nie powiódł się
public void testRunFailed (FailureDescription failure)
Parametry |
---|
failure | FailureDescription |
testRun nie powiódł się
public void testRunFailed (String errorMessage)
Parametry |
---|
errorMessage | String |
Uruchomiono testRun
public void testRunStarted (String runName,
int testCount)
Parametry |
---|
runName | String |
testCount | int |