In part 1 of this tutorial (I recommend to walk through it first) we created a simple web application, set up a Hudson server to build it and test it with Selenium. But we left with one major flaw: Hudson build the war file, but the JUnit test the job triggered was tesing an application already deployed to a Glassfish instance. Today we wipe out this problem, setting up a proper sequence of building, deploying and testing the application.
Pre-Requirements (same as in part 1):
- Netbeans 6.9 (earlier versions certainly work as well)
- Glassfish
A local Glassfish that comes with Netbeans is good enough. I am using a Glassfish 3.0.1 running in a VirtualBox. - Hudson Server
Download the war file from here. For the tutorial we will use a local standalone Hudson server. - Selenium RC
Download from here. - Sourcecode Repository (SVN)
In order to use Hudson, it is recommended to have a sourcecode repository like SVN to upload the code.
Tutorial:
Continue reading