public class ScreenshotCreator extends Object
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 @NonNull org.jbehave.core.reporters.StoryReporterBuilder |
reporterBuilder |
static String |
SCREENSHOT_PATH |
protected @NonNull WebDriverWrapper |
webDriverWrapper |
| Constructor and Description |
|---|
ScreenshotCreator(@NonNull org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder,
@NonNull WebDriverWrapper webDriverWrapper) |
| Modifier and Type | Method and Description |
|---|---|
String |
createScreenshot(String storyFolder,
String step,
String status)
Create screenshot for given step.
|
protected void |
logScreenshot(String step,
String screenshotPath) |
protected String |
reportUrl(String storyFolder,
String screenshotName) |
protected boolean |
screenshotIsNotEmpty(String screenshotPath) |
protected String |
screenshotName(String step,
String status) |
protected String |
screenshotPath(String storyFolder,
String screenshotName) |
public static String SCREENSHOT_PATH
@NonNull protected final @NonNull org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder
@NonNull protected final @NonNull WebDriverWrapper webDriverWrapper
public ScreenshotCreator(@NonNull
@NonNull org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder,
@NonNull
@NonNull WebDriverWrapper webDriverWrapper)
public String createScreenshot(String storyFolder, String step, String status)
storyFolder - - The current story folder. Every story has it's own folderstep - - The current stepstatus - - The status of the current step: successful, failedprotected boolean screenshotIsNotEmpty(String screenshotPath)
Copyright © 2017–2020. All rights reserved.