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:
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:
greenhouse Main web application which provides the data for the mobile apps.
greenhouse-iphone The code of the iPhone app.
greenhouse-android The code of the Android app.
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: email@example.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: