Package com.consol.citrus.report
Class LoggingReporter
- java.lang.Object
-
- com.consol.citrus.report.AbstractTestReporter
-
- com.consol.citrus.report.LoggingReporter
-
- All Implemented Interfaces:
com.consol.citrus.report.MessageListener
,com.consol.citrus.report.TestActionListener
,com.consol.citrus.report.TestListener
,com.consol.citrus.report.TestReporter
,com.consol.citrus.report.TestSuiteListener
- Direct Known Subclasses:
OutputStreamReporter
public class LoggingReporter extends AbstractTestReporter implements com.consol.citrus.report.MessageListener, com.consol.citrus.report.TestSuiteListener, com.consol.citrus.report.TestListener, com.consol.citrus.report.TestActionListener
Simple logging reporter printing test start and ending to the console/logger.- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description LoggingReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
debug(String line)
Write debug level output.protected void
error(String line, Throwable cause)
Write error level output.void
generate(com.consol.citrus.report.TestResults testResults)
Subclasses must implement this method and generate the test report for given test results.protected void
info(String line)
Write info level output.protected boolean
isDebugEnabled()
Is debug level enabled.void
onFinish()
void
onFinishFailure(Throwable cause)
void
onFinishSuccess()
void
onInboundMessage(com.consol.citrus.message.Message message, com.consol.citrus.context.TestContext context)
void
onOutboundMessage(com.consol.citrus.message.Message message, com.consol.citrus.context.TestContext context)
void
onStart()
void
onStartFailure(Throwable cause)
void
onStartSuccess()
void
onTestActionFinish(com.consol.citrus.TestCase testCase, com.consol.citrus.TestAction testAction)
void
onTestActionSkipped(com.consol.citrus.TestCase testCase, com.consol.citrus.TestAction testAction)
void
onTestActionStart(com.consol.citrus.TestCase testCase, com.consol.citrus.TestAction testAction)
void
onTestFailure(com.consol.citrus.TestCase test, Throwable cause)
void
onTestFinish(com.consol.citrus.TestCase test)
void
onTestSkipped(com.consol.citrus.TestCase test)
void
onTestStart(com.consol.citrus.TestCase test)
void
onTestSuccess(com.consol.citrus.TestCase test)
-
Methods inherited from class com.consol.citrus.report.AbstractTestReporter
generateReport, getReportDirectory, isIgnoreErrors, setIgnoreErrors, setReportDirectory
-
-
-
-
Method Detail
-
generate
public void generate(com.consol.citrus.report.TestResults testResults)
Description copied from class:AbstractTestReporter
Subclasses must implement this method and generate the test report for given test results.- Specified by:
generate
in classAbstractTestReporter
-
onTestFailure
public void onTestFailure(com.consol.citrus.TestCase test, Throwable cause)
- Specified by:
onTestFailure
in interfacecom.consol.citrus.report.TestListener
-
onTestSkipped
public void onTestSkipped(com.consol.citrus.TestCase test)
- Specified by:
onTestSkipped
in interfacecom.consol.citrus.report.TestListener
-
onTestStart
public void onTestStart(com.consol.citrus.TestCase test)
- Specified by:
onTestStart
in interfacecom.consol.citrus.report.TestListener
-
onTestFinish
public void onTestFinish(com.consol.citrus.TestCase test)
- Specified by:
onTestFinish
in interfacecom.consol.citrus.report.TestListener
-
onTestSuccess
public void onTestSuccess(com.consol.citrus.TestCase test)
- Specified by:
onTestSuccess
in interfacecom.consol.citrus.report.TestListener
-
onFinish
public void onFinish()
- Specified by:
onFinish
in interfacecom.consol.citrus.report.TestSuiteListener
-
onStart
public void onStart()
- Specified by:
onStart
in interfacecom.consol.citrus.report.TestSuiteListener
-
onFinishFailure
public void onFinishFailure(Throwable cause)
- Specified by:
onFinishFailure
in interfacecom.consol.citrus.report.TestSuiteListener
-
onFinishSuccess
public void onFinishSuccess()
- Specified by:
onFinishSuccess
in interfacecom.consol.citrus.report.TestSuiteListener
-
onStartFailure
public void onStartFailure(Throwable cause)
- Specified by:
onStartFailure
in interfacecom.consol.citrus.report.TestSuiteListener
-
onStartSuccess
public void onStartSuccess()
- Specified by:
onStartSuccess
in interfacecom.consol.citrus.report.TestSuiteListener
-
onTestActionStart
public void onTestActionStart(com.consol.citrus.TestCase testCase, com.consol.citrus.TestAction testAction)
- Specified by:
onTestActionStart
in interfacecom.consol.citrus.report.TestActionListener
-
onTestActionFinish
public void onTestActionFinish(com.consol.citrus.TestCase testCase, com.consol.citrus.TestAction testAction)
- Specified by:
onTestActionFinish
in interfacecom.consol.citrus.report.TestActionListener
-
onTestActionSkipped
public void onTestActionSkipped(com.consol.citrus.TestCase testCase, com.consol.citrus.TestAction testAction)
- Specified by:
onTestActionSkipped
in interfacecom.consol.citrus.report.TestActionListener
-
onInboundMessage
public void onInboundMessage(com.consol.citrus.message.Message message, com.consol.citrus.context.TestContext context)
- Specified by:
onInboundMessage
in interfacecom.consol.citrus.report.MessageListener
-
onOutboundMessage
public void onOutboundMessage(com.consol.citrus.message.Message message, com.consol.citrus.context.TestContext context)
- Specified by:
onOutboundMessage
in interfacecom.consol.citrus.report.MessageListener
-
info
protected void info(String line)
Write info level output.- Parameters:
line
-
-
error
protected void error(String line, Throwable cause)
Write error level output.- Parameters:
line
-cause
-
-
debug
protected void debug(String line)
Write debug level output.- Parameters:
line
-
-
isDebugEnabled
protected boolean isDebugEnabled()
Is debug level enabled.- Returns:
-
-