Automated web application testing is an important part of any web application development effort. Spring Roo provides supports for auto-generating Selenium tests for the Spring Web MVC controllers. In this recipe, we'll look at how to generate Selenium tests for web controllers using Roo and how to use the Selenium maven plugin to execute them.
Delete the contents of
ch04-recipe sub-directory inside the
ch04_web-app.roo script into the
ch04_web-app.roo script that creates the
flight-app Roo project, sets up Hibernate as the persistence provider, configures MySQL as the database for the application, creates the
FlightDescription JPA entities and defines a many-to-one relationship between
FlightDescription entities. If you are using a different database than MySQL or your connection settings are different than what is specified in...