Package io.cucumber.core.plugin.report
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintextractScenarioDataVariantIndex(IScenarioContext context, io.cucumber.plugin.event.TestCase testCase) static List<RbelElement>getCurrentStepMessages(boolean isDryRun, SerenityReporterCallbacks.StepState stepState) Set<de.gematik.rbellogger.data.core.RbelMismatchNoteFacet>getFileNameFor(String type, String scenarioName, int dataVariantIndex) intnumber of failed scenarios / scenario data variants.intnumber of passed scenarios / scenario data variants.voidhandleTestCaseFinished(io.cucumber.plugin.event.TestCaseFinished event, IScenarioContext context) voidhandleTestCaseStarted(io.cucumber.plugin.event.TestCaseStarted testCaseStartedEvent, IScenarioContext context) voidhandleTestRunFinished(io.cucumber.plugin.event.TestRunFinished ignoredEvent) voidhandleTestRunStarted(io.cucumber.plugin.event.Event ignoredEvent) voidhandleTestSourceRead(io.cucumber.plugin.event.Event event) voidhandleTestStepFinished(io.cucumber.plugin.event.TestStepFinished event, IScenarioContext context) voidhandleTestStepStarted(io.cucumber.plugin.event.TestStepStarted event, IScenarioContext context) static booleanvoidrecordScreenshot(String s, byte[] bytes) scenarioIdFrom(io.cucumber.plugin.event.TestCase testCase) static voidsetPauseMode(boolean pauseMode) voidstepFailed(net.thucydides.model.steps.StepFailure failure, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList, boolean isInDataDrivenTest) voidstepFailed(net.thucydides.model.steps.StepFailure stepFailure, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list, boolean b, ZonedDateTime zonedDateTime) voidvoidstepFinished(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> screenshotList) voidstepFinished(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list, ZonedDateTime zonedDateTime) voidstepStarted(net.thucydides.model.steps.ExecutedStepDescription description) voidstepStarted(net.thucydides.model.steps.ExecutedStepDescription description, ZonedDateTime startTime) voidtakeScreenshots(List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list) voidtakeScreenshots(net.thucydides.model.domain.TestResult testResult, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list) voidtestFinished(net.thucydides.model.domain.TestOutcome testOutcome, boolean b, ZonedDateTime zonedDateTime) voidvoidtestStarted(String s, String s1) voidtestStarted(String s, String s1, ZonedDateTime zonedDateTime) Methods inherited from class net.serenitybdd.core.listeners.AbstractStepListener
addNewExamplesFrom, assumptionViolated, exampleFinished, exampleStarted, lastStepFailed, notifyScreenChange, skippedStepStarted, stepFailed, stepIgnored, stepPending, stepPending, testAborted, testFailed, testFinished, testIgnored, testIsManual, testPending, testRetried, testSkipped, testStarted, testSuiteFinished, testSuiteStarted, testSuiteStarted, testSuiteStarted, useExamplesFromMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thucydides.model.steps.StepListener
exampleStarted, exampleStarted, exampleStarted, testFinished, testStarted, testStarted
-
Field Details
-
TARGET_DIR
- See Also:
-
tigerInitializer
-
-
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
-
handleTestCaseFinished
public void handleTestCaseFinished(io.cucumber.plugin.event.TestCaseFinished event, IScenarioContext context) -
getFileNameFor
-
replaceSpecialCharacters
-
scenarioIdFrom
-
stepStarted
public void stepStarted(net.thucydides.model.steps.ExecutedStepDescription description) - Specified by:
stepStartedin interfacenet.thucydides.model.steps.StepListener- Overrides:
stepStartedin classnet.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:
stepFinishedin interfacenet.thucydides.model.steps.StepListener- Overrides:
stepFinishedin classnet.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
-
testStarted
-
testFinished
public void testFinished(net.thucydides.model.domain.TestOutcome testOutcome, boolean b, ZonedDateTime zonedDateTime) -
testRunFinished
public void testRunFinished() -
takeScreenshots
-
takeScreenshots
public void takeScreenshots(net.thucydides.model.domain.TestResult testResult, List<net.thucydides.model.screenshots.ScreenshotAndHtmlSource> list) -
recordScreenshot
-
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.
-