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.
  • Constructor Details

    • TestFlowReporter

      public TestFlowReporter()
  • Method Details

    • generate

      protected void generate(org.citrusframework.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 class AbstractTestReporter
    • onTestActionStart

      public void onTestActionStart(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction)
      Specified by:
      onTestActionStart in interface org.citrusframework.report.TestActionListener
    • onTestActionFinish

      public void onTestActionFinish(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction)
      Specified by:
      onTestActionFinish in interface org.citrusframework.report.TestActionListener
    • onTestActionFailed

      public void onTestActionFailed(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction, Throwable cause)
      Specified by:
      onTestActionFailed in interface org.citrusframework.report.TestActionListener
    • onTestActionSkipped

      public void onTestActionSkipped(org.citrusframework.TestCase test, org.citrusframework.TestAction testAction)
      Specified by:
      onTestActionSkipped in interface org.citrusframework.report.TestActionListener
    • onTestStart

      public void onTestStart(org.citrusframework.TestCase test)
      Specified by:
      onTestStart in interface org.citrusframework.report.TestListener
    • onTestSuccess

      public void onTestSuccess(org.citrusframework.TestCase test)
      Specified by:
      onTestSuccess in interface org.citrusframework.report.TestListener
    • onTestFailure

      public void onTestFailure(org.citrusframework.TestCase test, Throwable cause)
      Specified by:
      onTestFailure in interface org.citrusframework.report.TestListener
    • onTestSkipped

      public void onTestSkipped(org.citrusframework.TestCase test)
      Specified by:
      onTestSkipped in interface org.citrusframework.report.TestListener
    • getJsonReport

      public String getJsonReport()
    • getYamlReport

      public String getYamlReport()
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.citrusframework.common.ShutdownPhase
    • clear

      public void clear()