public class ScreenshotHtmlOutput
extends org.jbehave.core.reporters.HtmlOutput
Copyright (c) 2019 Daniel Keiss, Deutsche Telekom AG This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
| Modifier and Type | Field and Description |
|---|---|
protected String |
currentStoryFolder |
protected ScreenshotCreator |
screenshotCreator |
protected boolean |
screenshotsOnSuccess |
| Constructor and Description |
|---|
ScreenshotHtmlOutput(PrintStream output,
org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder,
boolean screenshotsOnSuccess,
ScreenshotCreator screenshotCreator) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeStory(org.jbehave.core.model.Story story,
boolean givenStory) |
void |
failed(String step,
Throwable storyFailure) |
protected boolean |
failedScreenshot(String step,
Throwable storyFailure) |
protected void |
failedScreenshotPattern() |
void |
successful(String step) |
protected boolean |
successfulScreenshot(String step) |
protected void |
successScreenshotPattern() |
afterExamples, afterGivenStories, afterScenario, afterStory, beforeExamples, beforeGivenStories, beforeScenario, beforeStep, comment, compressFailureTrace, doCompressFailureTrace, doReportFailureTrace, dryRun, escape, example, failedOutcomes, format, formatTable, givenStories, givenStories, ignorable, lifecyle, lookupPattern, narrative, notPerformed, overwritePattern, pending, pendingMethods, print, print, reportFailureTrace, restarted, restartedStory, scenarioNotAllowed, storyCancelled, storyNotAllowed, toString, transformPrintingTableprotected final boolean screenshotsOnSuccess
protected final ScreenshotCreator screenshotCreator
protected String currentStoryFolder
public ScreenshotHtmlOutput(PrintStream output, org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder, boolean screenshotsOnSuccess, ScreenshotCreator screenshotCreator)
protected void successScreenshotPattern()
protected void failedScreenshotPattern()
public void beforeStory(org.jbehave.core.model.Story story,
boolean givenStory)
beforeStory in interface org.jbehave.core.reporters.StoryReporterbeforeStory in class org.jbehave.core.reporters.PrintStreamOutputpublic void successful(String step)
successful in interface org.jbehave.core.reporters.StoryReportersuccessful in class org.jbehave.core.reporters.PrintStreamOutputprotected boolean successfulScreenshot(String step)
public void failed(String step, Throwable storyFailure)
failed in interface org.jbehave.core.reporters.StoryReporterfailed in class org.jbehave.core.reporters.PrintStreamOutputCopyright © 2017–2020. All rights reserved.