Sean O'Donnells Weblog
I have been suffering from an increasingly bad case of test guilt. Ogham is completely test free. Not one test, not a sausage. The main reason for this is that most of the heavy lifting is done in javascript and I did not know of any tool that could be used to test it when I started development.
I set out tonight to try and create some functional tests and hush the nagging little voice in my head that keeps whispering 'If you dont start writing tests soon you will regret it, you never should have let it get this far' . Three tests would do me for starters - creating a page, editing a page, deleting a page, all of the basic operations. I turned to Selenium first. The framework is without doubt impressive but I hit two major stumbling blocks quickly. It doesnt support frames or right clicks which makes Ogham an untestable app as far as Selenium is concerned. I cannot think of any reason why Selenium cant support both, It is simply not implemented.
This is a big let down. The annoying little voice has been repeatly promised that I would get to grips with Selenium and make everything better soon. I could imagine an evil little monster with an unbearably smug look on its face. The words I told you so are unspoken but still hanging in the air.
I turned to Google for salvation. First hit was jsUnit, A nice tool , but intended for unit testing not functional testing. Next up was Ghost Train, a very promising tool but still in its early days , no real documentation and I could not see how I could pick it up and run with it. Ghost Train is also firefox only at the moment and I really need to ability to test on Internet Explorer.
Watir looks like it could do everything I need, but its windows and IE only, which rules it right out. IEUnit has exactly the same problems. So after hours of Searching it would appear that the only real choice I have is start hacking on Selenium or build my own tool. If anyone has any other suggestions, please , please help me. I have to silence the nagging little voice.