The Web Runner is a webapp that allows users to run any generic textual story. In order to do this, the appropriate JBehave Steps instances required to match the textual steps need to be configured in the application.
The Web Runner is a Wicket-based application and provides a base application class, WebRunnerApplication which only requires the specification of the InjectableStepsFactory for the story running, e.g.:
The user can optionaly override any of the protected methods of WebRunnerApplication which return instances of the configurable components of the Web Runner.
The application class name then needs to be configured in the WicketFilter in your web.xml:
Note that some webapp containers may not handle filters properly. In this case, you can equally use a servlet to configure the Wicket application:
Maven users can model their own module on the trader runner example
Ant users can download the web distribution from download page
The Web Runner comes with default web resources, but these can be overridden by adding them to the src/main/webapp directory. Only custom resources that override the default ones are required. So, e.g. to change the default style, only src/main/webapp/style/jbehave/jbehave.css needs to be added.