org.jbehave.web.selenium
Class WebDriverPageDumpOnFailure

java.lang.Object
  extended by org.jbehave.web.selenium.WebDriverSteps
      extended by org.jbehave.web.selenium.WebDriverPageDumpOnFailure

public class WebDriverPageDumpOnFailure
extends WebDriverSteps

WebDriverSteps that save a page dump upon failure in a scenario outcome.


Field Summary
static String DEFAULT_PAGE_DUMP_PATH_PATTERN
           
protected  String pageDumpPathPattern
           
protected  org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder
           
 
Fields inherited from class org.jbehave.web.selenium.WebDriverSteps
driverProvider
 
Constructor Summary
WebDriverPageDumpOnFailure(WebDriverProvider driverProvider)
           
WebDriverPageDumpOnFailure(WebDriverProvider driverProvider, org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder)
           
WebDriverPageDumpOnFailure(WebDriverProvider driverProvider, org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder, String pageDumpPathPattern)
           
 
Method Summary
 void afterScenarioFailure(org.jbehave.core.failures.UUIDExceptionWrapper uuidWrappedFailure)
           
protected  String pageDumpPath(UUID uuid)
           
 
Methods inherited from class org.jbehave.web.selenium.WebDriverSteps
getDriverProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PAGE_DUMP_PATH_PATTERN

public static final String DEFAULT_PAGE_DUMP_PATH_PATTERN
See Also:
Constant Field Values

reporterBuilder

protected final org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder

pageDumpPathPattern

protected final String pageDumpPathPattern
Constructor Detail

WebDriverPageDumpOnFailure

public WebDriverPageDumpOnFailure(WebDriverProvider driverProvider)

WebDriverPageDumpOnFailure

public WebDriverPageDumpOnFailure(WebDriverProvider driverProvider,
                                  org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder)

WebDriverPageDumpOnFailure

public WebDriverPageDumpOnFailure(WebDriverProvider driverProvider,
                                  org.jbehave.core.reporters.StoryReporterBuilder reporterBuilder,
                                  String pageDumpPathPattern)
Method Detail

afterScenarioFailure

public void afterScenarioFailure(org.jbehave.core.failures.UUIDExceptionWrapper uuidWrappedFailure)
                          throws Exception
Throws:
Exception

pageDumpPath

protected String pageDumpPath(UUID uuid)


Copyright © 2012. All Rights Reserved.