Hi Russ,
Firstly, apologies for the lack of a reply sooner, I think this must have slipped under everyone's radar..
Anyway, to run the example project via maven type:
mvn clean integration-test
this will run the features using HTMLUnit. Change the values in localhost.properties to use Firefox or Chrome.
in pom.xml around line 92 you can see that the Substeps plugin is bound to the integration-test phase of maven rather than 'test'
....
<executions>
<execution>
<id>SubSteps Test</id>
<phase>integration-test</phase>
it is possible to run the plugin in any phase, however typically 'the build' will also have compiled the application under test, run unit tests, packaged up, deployed, started the container etc in the preceding phases. More information on Maven's build phases can be found
here.
To run the features via the substeps eclipse plugin (and I'm assuming you've got 0.2.7 of the plugin installed)
select the project in the package or project explorer, context (typically right) click, Properties. Select 'Substeps' and check 'Enable project specific settings'. Then disable 'Show substeps problems' and set the paths to the features and substeps thus: src/test/resources/features and src/test/resources/substeps. Click Apply.
You will now be able to select a feature, context click, Run As "Substeps feature test". If you wish to use Chrome along with the eclipse plugin, the initial run will fail as the path to Chromedriver will be missing. This can be set, by again selecting the feature, context click, Run configurations, 'Arguments' tab and adding -Dwebdriver.chrome.driver= <
path to chromedriver> in the VM arguments text field.
If you would like to run your tests with the current version of firefox, until we get another version of webdriver substeps out (hopefully not too long!) you will need to override the version of selenium-webdriver used:
in pom.xml add the highlighted text:
<dependency>
<groupId>com.technophobia.substeps</groupId>
<artifactId>webdriver-substeps</artifactId>
<version>${substeps.webdriver.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
</exclusion>
</exclusions> </dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.35.0</version>
</dependency>I hope that helps and apologies again for the tardy reply!
Cheers
Ian