Friday 20 February 2009

Automated UI Testing using Ruby and Watir

Just before Christmas our Scrum Master was asked to come up with a way of automating UI testing using open source software. He came across Watir (Web Automated Testing in Ruby).

Creating scripts in Watir is very easy to do. Our Scrum master (using the watir API) has written some classes including domain specific ones (relating to our project) thus making it very easy for anyone to be able to write scripts.

The point of this was to help with regression testing so that it is almost push a button and the scripts will do all the work for UI testing. Obviously there are limitations (such as automating email activation) but it is devised in such a way that writing a script has a natural language feel to it.

We have been incorporating the writing of these scripts as screens are developed in our sprints, this allows us to provide better test coverage.

The scripts have mostly been written by the developers and a tester, we were hoping that the testers would be more enthusiastic in getting involved, however this has not been the case. I think they are a bit hesitant and would rather go through every single screen than to trust the automated process, which is a shame really as it works so well.

For further details on the technical aspect of Watir, please visit the link provided.

No comments:

Post a Comment

Search This Blog