Dominik Dary's Blog

Mar 12, 2012 - 2 minute read - mobile test automation Spring Greenhouse

Greenhouse Application

In my past blog entry I listed different Open Source Frameworks that can be used for mobile testing on Android and iOS. For showcasing the different frameworks, I will use the Open Source project Greenhouse that SpringSource has created some while ago to:

Serve as a open-source, public-facing reference and driver for Spring technology, including Spring MVC, Security, Integration, and the new Spring Social and Mobile projects.

For making the demonstration easier, I have forked the corresponding projects on Github and in the following lines you find all the details you need to follow to setup everything:

SpringSource has created a guide about how to setup the development environment. The main reason for creating the fork was the data initialization, for doing this you need

  • to clone the greenhouse project and
  • to update the test-data.sql.

Running the webapp The webapp can be started using Tomcat from the command line by invoking the Tomcat 7 Maven plugin: mvn clean install t7:run The webapp can be found under: http://localhost:8080/greenhouse where you can login with the following details (in the above mentioned sql file you find other credentials as well): Username: craig@habuma.com Password: freebird

Running the Android app (Details are taken from the greenhouse-android wiki) Build and Run the Greenhouse for Android app:

$ _cd greenhouse-android_
$ _mvn clean install_
If your favorite Android emulator is started:
$_ mvn android:deploy_

In this screencast I describe how the greenhouse environment is setup: