Package org.citrusframework.report
Class TestFlowReporter
java.lang.Object
org.citrusframework.report.AbstractTestReporter
org.citrusframework.report.TestFlowReporter
- All Implemented Interfaces:
org.citrusframework.common.ShutdownPhase,org.citrusframework.report.TestActionListener,org.citrusframework.report.TestListener,org.citrusframework.report.TestReporter
public class TestFlowReporter
extends AbstractTestReporter
implements org.citrusframework.report.TestListener, org.citrusframework.report.TestActionListener, org.citrusframework.common.ShutdownPhase
Reporter generates a detailed report of executed tests by capturing its test action execution.
Each executed test action is provided with an action path that can be used to identify the test action within the test.
Test action containers report their nested test actions and iterating test containers report on the individual iterations executed.
Failed test actions hold failure cause information.
Test actions that exchange messages with send or receive operations provide message content information.
The result is a graph of executed test actions that represents the test flow.
Graphical designers may use this test flow graph to visualize the test result in detail.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
Fields inherited from class org.citrusframework.report.AbstractTestReporter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddestroy()protected voidgenerate(org.citrusframework.report.TestResults testResults) Subclasses must implement this method and generate the test report for given test results.voidonTestActionFailed(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction, Throwable cause) voidonTestActionFinish(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction) voidonTestActionSkipped(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction) voidonTestActionStart(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction) voidonTestFailure(org.citrusframework.TestCase test, Throwable cause) voidonTestSkipped(org.citrusframework.TestCase test) voidonTestStart(org.citrusframework.TestCase test) voidonTestSuccess(org.citrusframework.TestCase test) Methods inherited from class org.citrusframework.report.AbstractTestReporter
generateReport, getReportDirectory, isIgnoreErrors, setIgnoreErrors, setReportDirectoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.citrusframework.report.TestListener
onAfterTestEnd, onAfterTestStart, onBeforeTestEnd, onBeforeTestStart, onFinalActionsEnd, onFinalActionsStart, onTestEnd, onTestExecutionEnd, onTestExecutionStart, onTestFinish
-
Constructor Details
-
TestFlowReporter
public TestFlowReporter()
-
-
Method Details
-
generate
protected void generate(org.citrusframework.report.TestResults testResults) Description copied from class:AbstractTestReporterSubclasses must implement this method and generate the test report for given test results.- Specified by:
generatein classAbstractTestReporter
-
onTestActionStart
public void onTestActionStart(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction) - Specified by:
onTestActionStartin interfaceorg.citrusframework.report.TestActionListener
-
onTestActionFinish
public void onTestActionFinish(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction) - Specified by:
onTestActionFinishin interfaceorg.citrusframework.report.TestActionListener
-
onTestActionFailed
public void onTestActionFailed(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction, Throwable cause) - Specified by:
onTestActionFailedin interfaceorg.citrusframework.report.TestActionListener
-
onTestActionSkipped
public void onTestActionSkipped(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction) - Specified by:
onTestActionSkippedin interfaceorg.citrusframework.report.TestActionListener
-
onTestStart
public void onTestStart(org.citrusframework.TestCase test) - Specified by:
onTestStartin interfaceorg.citrusframework.report.TestListener
-
onTestSuccess
public void onTestSuccess(org.citrusframework.TestCase test) - Specified by:
onTestSuccessin interfaceorg.citrusframework.report.TestListener
-
onTestFailure
- Specified by:
onTestFailurein interfaceorg.citrusframework.report.TestListener
-
onTestSkipped
public void onTestSkipped(org.citrusframework.TestCase test) - Specified by:
onTestSkippedin interfaceorg.citrusframework.report.TestListener
-
getJsonReport
-
getYamlReport
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.citrusframework.common.ShutdownPhase
-
clear
public void clear()
-