Thomas Sundberg is an independent consultant and contractor based in Stockholm, Sweden.
He has been working as a developer for more than 25 years. Thomas has a Masters degree in Computer Science from the Royal Institute of Technology, KTH, in Stockholm. He has taught programming at The Royal Institute of Technology, KTH, one the leading technical universities in Sweden.
Thomas has developed an obsession for technical excellence that translates to software craftsmanship, clean code, test automation and continuous deployment.
Definition of done according to Thomas is working software, in production.
He runs a blog where he writes about programming, software craftsmanship, tdd, bdd and whatever problem he wants to share a solution about. It can be found at http://thomassundberg.wordpress.com/
Thomas tweets as @thomassundberg
We are automating web applications using Selenium WebDriver. It is easy to get started with automated tests. It is harder to maintain an automated test system. The entropy increases with time and different developers/testers; your once beautiful crafted test code may end up unrecognisable.
The cure for this is to apply the Four Rules of Simple design while you maintain the tests. The rules, as suggested by Kent Beck, are:
Thomas will take a test suite for a web application and by following the Four Rules of Simple design, transform it step by step into something that is easier to maintain.
This will be a live coding session with a lot of refactoring. All steps will be small and you will therefore be able to follow even if your main profession isn’t writing code. After this session, you will know that even the most horrible test code is possible to clean up just be slowly transforming the code in small steps.