Agile Acceptance Testing Slides

Saturday, June 26th, 2010

Below are slides I presented at the LJC Unconference on Agile Acceptance Testing with Cucumber, Cuke4Duke, Groovy & Selenium. Download in PDF format.

View more presentations from Richard Paul.

Tags: , , , , , , ,

5 Comments to Agile Acceptance Testing Slides

[...] Richard presented at the LJC Unconference on ‘Agile Acceptance Testing with Cucumber, Cuke4Duke, Groovy & Selenium’ and has posted his slides [...]

Martin Anderson
June 28, 2010

Great presentation at LJC and thanks for making your slides available so quickly!

James Brook
November 17, 2010

Richard, your slides have been really useful to me in getting set up with Cuke4Duke to write WebDriver tests for my application using Groovy. I am still not quite happy with it as a solution though. I haven’t had any luck in working out how to factor out code that is repeated in multiple steps. I saw you asked about the PageObject pattern and this issue on the Google group. Did you ever work it out? Any help will be much appreciated, otherwise I will switch to Java :(

Richard Paul
November 17, 2010

Hi James, funny you should ask this question now. We’ve been struggling with code reuse and a good way to organise the code. The other week I came across Geb http://geb.codehaus.org/ which is a Groovy layer on top of Selenium/WebDriver. It has a neat jQuery like API and great support for the Page Object Pattern. I’m part way through writing up a new post on it so give me a few days and I’ll show you how we are starting to make use of it.

I’ll also be talking about Geb at the London Agile Testing User Group in January if you are in London
http://www.agiletesting.org.uk/january_2011.php

James Brook
November 18, 2010

Thanks Richard. That looks interesting. I am in Amsterdam so may not make the talk. I see someone has set up an example project for something similar here: https://github.com/geb/geb-example-cuke4duke

If you look in their env,groovy you will see that they have run into another of the problems that I have. I wanted to add an ‘after hook’, where I would get the name of the scenario and check if it failed. Then I could take a screenshot with WebDriver. Unfortunately the groovy methods don’t seem to be bridged properly to the underlying ruby ones.

Something else interesting to note is that the creator of Cucumber and Cuke4Duke is working on a pure Java version of Cucumber because he does most of his development in Java now anyway.

Leave a comment