Class ScreenshotHtmlOutput
- java.lang.Object
-
- org.jbehave.core.reporters.NullStoryReporter
-
- org.jbehave.core.reporters.PrintStreamOutput
-
- org.jbehave.core.reporters.HtmlOutput
-
- de.telekom.test.bddwebapp.frontend.screenshot.ScreenshotHtmlOutput
-
- All Implemented Interfaces:
org.jbehave.core.reporters.StoryReporter
public class ScreenshotHtmlOutput extends org.jbehave.core.reporters.HtmlOutputRender screenshots for success and error at report- Author:
- Daniel Keiss <daniel.keiss@telekom.de>
Copyright (c) 2020 Daniel Keiss, Deutsche Telekom IT GmbH This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
-
-
Field Summary
Fields Modifier and Type Field Description protected CurrentStorycurrentStoryprotected StringcurrentStoryFolderprotected ScreenshotCreatorscreenshotCreatorprotected booleanscreenshotsOnSuccess
-
Constructor Summary
Constructors Constructor Description ScreenshotHtmlOutput(PrintStream output, org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder, boolean screenshotsOnSuccess, ScreenshotCreator screenshotCreator, CurrentStory currentStory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeStory(org.jbehave.core.model.Story story, boolean givenStory)voidfailed(String step, Throwable storyFailure)protected booleanfailedScreenshot(String step, Throwable storyFailure)protected voidfailedScreenshotPattern()voidsuccessful(String step)protected booleansuccessfulScreenshot(String step)protected voidsuccessScreenshotPattern()-
Methods inherited from class org.jbehave.core.reporters.PrintStreamOutput
afterExamples, afterGivenStories, afterScenario, afterStory, afterStorySteps, beforeExamples, beforeGivenStories, beforeScenario, beforeStep, beforeStorySteps, comment, compressFailureTrace, doCompressFailureTrace, doReportFailureTrace, dryRun, escape, example, failedOutcomes, format, formatTable, formatVerbatim, givenStories, givenStories, ignorable, lifecyle, lookupPattern, narrative, notPerformed, overwritePattern, pending, pendingMethods, print, print, reportFailureTrace, restarted, restartedStory, scenarioNotAllowed, storyCancelled, storyNotAllowed, toString, transformPrintingTable, transformPrintingVerbatim
-
-
-
-
Field Detail
-
screenshotsOnSuccess
protected final boolean screenshotsOnSuccess
-
screenshotCreator
protected final ScreenshotCreator screenshotCreator
-
currentStory
protected final CurrentStory currentStory
-
currentStoryFolder
protected String currentStoryFolder
-
-
Constructor Detail
-
ScreenshotHtmlOutput
public ScreenshotHtmlOutput(PrintStream output, org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder, boolean screenshotsOnSuccess, ScreenshotCreator screenshotCreator, CurrentStory currentStory)
-
-
Method Detail
-
successScreenshotPattern
protected void successScreenshotPattern()
-
failedScreenshotPattern
protected void failedScreenshotPattern()
-
beforeStory
public void beforeStory(org.jbehave.core.model.Story story, boolean givenStory)- Specified by:
beforeStoryin interfaceorg.jbehave.core.reporters.StoryReporter- Overrides:
beforeStoryin classorg.jbehave.core.reporters.PrintStreamOutput
-
successful
public void successful(String step)
- Specified by:
successfulin interfaceorg.jbehave.core.reporters.StoryReporter- Overrides:
successfulin classorg.jbehave.core.reporters.PrintStreamOutput
-
successfulScreenshot
protected boolean successfulScreenshot(String step)
-
failed
public void failed(String step, Throwable storyFailure)
- Specified by:
failedin interfaceorg.jbehave.core.reporters.StoryReporter- Overrides:
failedin classorg.jbehave.core.reporters.PrintStreamOutput
-
-