net.thucydides.core.steps
Class StepIndex

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

public abstract class StepIndex
extends Object

The Step Index class is a way to allow the dynamic discovery of what test steps are available. This assumes you are writing your Page Objects and ScenarioStep classes in a separate artifact, which unit tests can then invoke. This is the most flexible way of implementing the page objects and steps. To use this class, override it and add a public array of classes containing the list of scenario step classes your test API provides. Then annotate this field using the '@StepProvider' annotation, as shown here:


    public class MyWebSiteStepIndex extends StepIndex {

Author:
johnsmart

Constructor Summary
StepIndex()
           
 
Method Summary
 List<Class<? extends ScenarioSteps>> getStepClasses()
           
 List<Method> getStepsFor(Class<? extends ScenarioSteps> scenarioClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepIndex

public StepIndex()
Method Detail

getStepClasses

public List<Class<? extends ScenarioSteps>> getStepClasses()

getStepsFor

public List<Method> getStepsFor(Class<? extends ScenarioSteps> scenarioClass)


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