net.thucydides.core.steps
Class StepFactory

Package class diagram package StepFactory
java.lang.Object
  extended by net.thucydides.core.steps.StepFactory

public class StepFactory
extends Object

Produces an instance of a set of requirement steps for use in the acceptance tests. Requirement steps navigate through pages using a WebDriver driver.


Constructor Summary
StepFactory()
          Create a new step factory without webdriver support.
StepFactory(Pages pages)
          Create a new step factory.
 
Method Summary
<T> T
getNewStepLibraryFor(Class<T> scenarioStepsClass)
           
<T> T
getStepLibraryFor(Class<T> scenarioStepsClass)
          Returns a new ScenarioSteps instance, of the specified type.
<T> T
getUniqueStepLibraryFor(Class<T> scenarioStepsClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepFactory

public StepFactory(Pages pages)
Create a new step factory. All web-testing step factories need a Pages object, which is passed to ScenarioSteps objects when they are created.


StepFactory

public StepFactory()
Create a new step factory without webdriver support. This is to be used for non-webtest acceptance tests.

Method Detail

getStepLibraryFor

public <T> T getStepLibraryFor(Class<T> scenarioStepsClass)
Returns a new ScenarioSteps instance, of the specified type. This is actually a proxy that allows reporting and screenshots to be performed at each step.


getNewStepLibraryFor

public <T> T getNewStepLibraryFor(Class<T> scenarioStepsClass)

getUniqueStepLibraryFor

public <T> T getUniqueStepLibraryFor(Class<T> scenarioStepsClass)


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.