Wednesday, June 3, 2009

JavaOne 2009: Enterprise Build and Test in the Cloud

Carlos Sanchez from G2iX on Enterprise Build and Test in the Cloud


  • Tools:


    • Build: Apache Maven (build and more, start/stop AS, automatic deployment, execution of tests - note: most people in the room use maven and not ant)

    • Test Cases: TestNG (they don't use JUnit) - unit/integration tests, parameterized tests, parallel testing - note: not many people in the room uses TestNG

    • Integration tests: Selenium - UI and integration testing, tests run in the browser, tests can be recorded, firefox plugin


  • Continuus Integration: Apache Continuum - tight integration with Maven, dependency handling, trigger builds on defined conditions - note: not many people in the room use continuum

  • Cloud Computing: Amazon Web Services - storage, queue service, manpower, computation

  • Joke of the day: The #1 Programmer Excuse for legitimately slacking off: "my code's compiling" - credits XKCD

  • Different setup for selenium grid: using a selenium hub brings no complexity to the developers or to the already written tests; setting up differente remote controls for differente environments (IE on Windows, Firefox on Linux, Safari on Mac) only depends on having the Selenium hub

  • TestNG will allow to run the same tests in the different environments that were setup by Selenium Grid

  • Test Servers cost money: using the cloud allows to use on-demand servers, pay-per-hour, unlimited number of machines and start in a couple of minutes - no OS X offered by amazon

  • Create Amazon Machine Images for each different environment you need to test your application - The machines are killed after the tests are run and you only pay for the time you use those machines

  • Use Maven EC2 plugin to start amazon AMIs, stop at the end of test and pass user data



Found a different (but up to date) version of this presentation from Carlos Sanches at slideshare.

No comments: