Tutorials in using jbehave-core, jbehave-web, and Selenium against pre-existing website etsy.com to show how BDD allows the description and test of the behaviour of a web application.
- The module 'etsy-selenium' runs (via maven) stories verifying the behaviour of Etsy.com. It uses Selenium to drive the web interaction and it has different sub-modules depending on the language and dependency injection framework used: Groovy composed using Pico or Java composed using Spring.
- The module 'etsy-web-runner' is a simple webapp that allows generic stories to be run. Note the app is not multiuser and not does support asynchronous execution. It is not appropriate to run long-running stories. It is also useful as a web front-end to the DSL syntax defined in your steps.
Uses the 'etsy-selenium/java-spring' steps and makes them available via the JBehave Web Runner.
NOTE: The Web Runner is a standalone web application that provides a simple web interface for running the Etsy stories via the Java steps. It does not run the (web) stories by command line.
The tutorial modules can be built using the following Maven profiles:
- groovy-pico
- java-spring (default)
- web-runner
To run default profile using latest stable versions:
$ mvn clean install -Pstable
To run another profile using latest stable versions:
$ mvn clean install -P[profile],stable
To run using latest snapshot from codehaus:
$ mvn clean install -s settings.xml -P[profile],codehaus
Tutorial has been tested with Maven 2.2.1 or 3.0.x and JDK 1.5 or 1.6.
See LICENSE.txt in the source root (BSD).