Class SerenityReporterCallbacks

java.lang.Object
net.serenitybdd.core.listeners.AbstractStepListener
io.cucumber.core.plugin.report.SerenityReporterCallbacks
All Implemented Interfaces:
net.thucydides.model.steps.StepListener

public class SerenityReporterCallbacks extends net.serenitybdd.core.listeners.AbstractStepListener
  • Field Details

  • Constructor Details

    • SerenityReporterCallbacks

      public SerenityReporterCallbacks()
  • Method Details

    • handleTestSourceRead

      public void handleTestSourceRead(io.cucumber.plugin.event.Event event)
    • handleTestRunStarted

      public void handleTestRunStarted(io.cucumber.plugin.event.Event ignoredEvent)
    • handleTestRunFinished

      public void handleTestRunFinished(io.cucumber.plugin.event.TestRunFinished ignoredEvent)
    • handleTestCaseStarted

      public void handleTestCaseStarted(io.cucumber.plugin.event.TestCaseStarted testCaseStartedEvent, IScenarioContext context)
    • extractScenarioDataVariantIndex

      public int extractScenarioDataVariantIndex(IScenarioContext context, io.cucumber.plugin.event.TestCase testCase)
    • handleTestStepStarted

      public void handleTestStepStarted(io.cucumber.plugin.event.TestStepStarted event, IScenarioContext context)
    • handleTestStepFinished

      public void handleTestStepFinished(io.cucumber.plugin.event.TestStepFinished event, IScenarioContext context)
    • getCurrentStepMessages

      public static List<RbelElement> getCurrentStepMessages(boolean isDryRun, SerenityReporterCallbacks.StepState stepState)
    • getCurrentStepMismatches

      public Set<de.gematik.rbellogger.data.core.RbelMismatchNoteFacet> getCurrentStepMismatches(Throwable error)
    • handleTestCaseFinished

      public void handleTestCaseFinished(io.cucumber.plugin.event.TestCaseFinished event, IScenarioContext context)
    • getFileNameFor

      public String getFileNameFor(String type, String scenarioName, int dataVariantIndex)
    • replaceSpecialCharacters

      public String replaceSpecialCharacters(String name)
    • scenarioIdFrom

      public String scenarioIdFrom(io.cucumber.plugin.event.TestCase testCase)
    • stepStarted

      public void stepStarted(net.thucydides.model.steps.ExecutedStepDescription description)
      Specified by:
      stepStarted in interface net.thucydides.model.steps.StepListener
      Overrides:
      stepStarted in class net.serenitybdd.core.listeners.AbstractStepListener
    • stepStarted

      public void stepStarted(net.thucydides.model.steps.ExecutedStepDescription description, ZonedDateTime startTime)
    • stepFinished

      public void stepFinished(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList)
    • stepFinished

      public void stepFinished(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list, ZonedDateTime zonedDateTime)
    • stepFinished

      public void stepFinished()
      Specified by:
      stepFinished in interface net.thucydides.model.steps.StepListener
      Overrides:
      stepFinished in class net.serenitybdd.core.listeners.AbstractStepListener
    • stepFailed

      public void stepFailed(net.thucydides.model.steps.StepFailure stepFailure, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list, boolean b, ZonedDateTime zonedDateTime)
    • stepFailed

      public void stepFailed(net.thucydides.model.steps.StepFailure failure, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList, boolean isInDataDrivenTest)
    • testStarted

      public void testStarted(String s, String s1)
    • testStarted

      public void testStarted(String s, String s1, ZonedDateTime zonedDateTime)
    • testFinished

      public void testFinished(net.thucydides.model.domain.TestOutcome testOutcome, boolean b, ZonedDateTime zonedDateTime)
    • testRunFinished

      public void testRunFinished()
    • takeScreenshots

      public void takeScreenshots(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list)
    • takeScreenshots

      public void takeScreenshots(net.thucydides.model.domain.TestResult testResult, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list)
    • recordScreenshot

      public void recordScreenshot(String s, byte[] bytes)
    • isPauseMode

      public static boolean isPauseMode()
    • setPauseMode

      public static void setPauseMode(boolean pauseMode)
    • getScPassed

      public int getScPassed()
      number of passed scenarios / scenario data variants.
    • getScFailed

      public int getScFailed()
      number of failed scenarios / scenario data variants.