Running generic scenarios via a web-based interface
The Web Runner provides a simple web-based interface to running
generic scenarios. A typical use case is for BAs, QAs or stakeholders to
be able to access the results of scenario running without needing access
to developer resources.
A fully functional example webapp is provided in trader
web example. We'll be using this example to illustrate the use of Web
Runner:
- Customise Web
Runner
- Deploy webapp to your favourite webapp container
- Open page http://localhost:8080/jbehave-trader
(assuming normal port conventions)
- On Menu, click on Run Scenario, which will take you
to a page where you can enter your textual scenario.
- Input textual scenario in textarea (e.g you can cut &
paste the one found in the trader
scenario) and click on Run Scenario link.
- Upon execution, the output of the scenario is shown below.
By default the same output is shown as the one you would see when
running JBehave via a command-line interface. This includes any
details of failed and pending steps. If any failures occur, the user
has be option to expand the stack trace.