Issue Type: Bug Bug
Affects Versions: 3.6.8
Assignee: Unassigned
Attachments: jbehavetestproject.rar
Components: Core
Created: 03/Aug/12 6:25 PM
Description:

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

Fix Versions: 3.6.8
Project: JBehave
Priority: Major Major
Reporter: roy de kleijn
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to