Installing Selenium With Jenkins on Ubuntu

Last week I fell in love with Selenium and started to create some tests using the Firefox Selenium IDE. If you’ve never done this I highly recommend trying it out. It’s really easy and great fun.

Now that I’ve created some great test suites I wanted to hook the tests to my Jenkins build server. There was no tutorial that covered everything online so here’s what I did:

This will install Jenkins, Selenium standalone, Chrome and FireFox on a headless Ubuntu server.


A 10x Faster Jasper Maven Plugin

For some months now I had to work with Java projects that use Jasper to generate PDF files. These reports have to be compiled from a kind xml-like document to a compiled ‘.jasper’ file. The Jasperreports-maven-plug-in does this for me whenever I make a release of the software or when I’m working on the reports. However, the plug-in takes considerable time to compile these reports. Compiling 52 reports takes about 49 seconds. That’s a bit too long for me if I have to make several builds. Since I wanted to learn how to make my own Maven plug-ins anyway I decided to try to make a faster plug-in on my own.

The original plug-in is created in Java 4, works single-threaded and the last time any committed to the repo was (at time of writing) 31st of August, 2009. Not really an active project it seems. For that reason I decided to just create a new project on Github.

I created the plug-in using Java 6, presuming most people will have Java 6 installed by now. Because the compiler has to read and write to a disk, doing so concurrently should make it faster. Finally, the code looks a better because the collections now have generics.

It turned out my plug-in was indeed a lot faster. While the original plug-in takes 48 seconds to compile 52 files, my plug-in only takes 4.7 seconds. Almost ten times faster!

Since it is my first Maven project there’s probably more work to be done. However it seems to work fine on Maven 2 and 3 on my Mac using Java 6.

You can try it yourself and download the source from the Github repo I created. Issues can be filed there as well.


Installing SSD in My 27” iMac

I finally decided to install a SSD in my 27″ iMac. The iMac is a late 2009 model and it’s very fast. However, most of the time it’s just waiting for the hard disk and not using it’s full potential. After experiencing the speed of a SSD on my MacBook Air I was convinced my iMac should have that power as well.

I’m typing this with the new SSD installed and everything is working blazingly fast! Boot-up time went from 92 seconds to 21. All apps start so fast you can’t even see the loading screen. I love this speed!