How to make your testing more Groovy
Testing can be a complex and thankless task. The technologies change so fast that your tools don’t work as they should. Your tests become brittle and are hard to relate to customer requirements. This talk looks at the latest techniques and tools for easing some of these burdens.
Topics include behavior driven development (BDD), domain specific testing languages (DSLs), scripting languages (Groovy) and a range of web, SOAP, and database testing libraries (JUnit, EasyB, WebTest, HtmlUnit, Tellurium, Robot Framework, JBehave, Cucumber, DbUnit, SoapUI, JMeter and more) and testing techniques.
With apologies to Simon and Garfunkel:
Slow down, you commit too fast.
You got way too much coverage contrast.
Just signing off your tested stories.
Looking for fun and testin’ with Groovy.
Easy B, Easy Ba da, …Testin’ with Groovy.
Hello get and post,
What cha knowin’?
I’ve come to watch your http flowin’.
Ain’t cha got no tests for me?
Doot-in’ doo-doo,
Testin’ with Groovy.
I’ve got no deeds to do,
No requirements to meet.
I’m dappled and drowsy and ready to sleep().
Let the database drop all its tables on me.
Testing, I love you,
All is Groovy.
So, it will be a fun session! On a serious note, each topic will first cover what the general problems are with existing tools and approaches. Then we will cover what can be done to overcome these problems. This will include covering the features offered by particular techniques (e.g. BDD with EasyB) or using scripting and dynamic languages for writing testing DSLs (e.g. Groovy) and a range of useful libraries. Only simple examples of each library will be covered as most have their own comprehensive documentation. What will be covered is how easy the libraries/tools are to get up and running and examples which give a flavour of using the library/tool.
The examples are all Groovy based but new advanced Groovy language knowledge will be required to understand the examples. Also, any of the new languages on the JVM, e.g. JRuby, Jython, Scala etc. all can be leveraged to gain many of the benefits described by the principles and examples covered.
Slides are available on SlideShare (don’t fit within the attachment limit for this site): http://tinyurl.com/groovy-testing
- Using EasyB for behavior driven development style tests
- Using Scripting languages for writing testing DSLs (domain specific languages)
- Using HtmlUnit, Tellarium and WebTest for testing web and Ajax applications
- Testing SOAP and RESTful web services
- Testing Databases and Data-Driven tests
- Model-driven tests

Add to calendar