I like to organize my steps in multiple class files. (because we have many 
steps in our application)

Question is: how can we use the steps from multiple step definition classes to 
execute a single story.

I use webdriver, I tried the following:

BaseClass.java
Instantiates the driver and opens the browser.

LoginSteps.java inherit from BaseClass.java
steps to login in application

SearchSteps.java inherit from BaseClass.java
Verify is elements is present.
BUT here is my driver instance suddenly null.

I think it has something to do with the way I execute my tests:
@Override
public InjectableStepsFactory stepsFactory() { return new 
InstanceStepsFactory(configuration(), new LoginSteps(), new searchPageSteps()); 
}

Please tell what other information you need or what I have to do differently.
Thanks

Reply via email to