public class WebDriverScreenshotOnFailure extends WebDriverSteps
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SCREENSHOT_PATH_PATTERN |
protected org.jbehave.core.reporters.StoryReporterBuilder |
reporterBuilder |
protected String |
screenshotPathPattern |
driverProvider
Constructor and Description |
---|
WebDriverScreenshotOnFailure(WebDriverProvider driverProvider) |
WebDriverScreenshotOnFailure(WebDriverProvider driverProvider,
org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder) |
WebDriverScreenshotOnFailure(WebDriverProvider driverProvider,
org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder,
String screenshotPathPattern) |
Modifier and Type | Method and Description |
---|---|
void |
afterScenarioFailure(org.jbehave.core.failures.UUIDExceptionWrapper uuidWrappedFailure) |
void |
afterScenarioWithExamplesFailure(org.jbehave.core.failures.UUIDExceptionWrapper uuidWrappedFailure) |
protected String |
screenshotPath(UUID uuid) |
getDriverProvider
public static final String DEFAULT_SCREENSHOT_PATH_PATTERN
protected final org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder
protected final String screenshotPathPattern
public WebDriverScreenshotOnFailure(WebDriverProvider driverProvider)
public WebDriverScreenshotOnFailure(WebDriverProvider driverProvider, org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder)
public WebDriverScreenshotOnFailure(WebDriverProvider driverProvider, org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder, String screenshotPathPattern)
@AfterScenario(uponType=EXAMPLE, uponOutcome=FAILURE) public void afterScenarioWithExamplesFailure(org.jbehave.core.failures.UUIDExceptionWrapper uuidWrappedFailure) throws Exception
Exception
@AfterScenario(uponType=NORMAL, uponOutcome=FAILURE) public void afterScenarioFailure(org.jbehave.core.failures.UUIDExceptionWrapper uuidWrappedFailure) throws Exception
Exception
Copyright © 2017. All rights reserved.