InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Example Driven Acceptance Testing

Posted by Vikas Hazrati on Jan 21, 2009

Sections
Process & Practices
Topics
Agile ,
Agile in the Enterprise
Tags
Testing ,
Acceptance Testing

Testing is considered to be an integral part of development. Code and test cases are important artifacts of an Agile project. However, in many Agile teams unit and integration tests have a higher prominence than acceptance tests. Gojko Adzic and Lisa Crispin suggest approaches to include acceptance tests efficiently as a part of development.

Gojko focused on the need to have an example writing workshop to support acceptance testing. According to him, before the start of the next iteration, the team should have a rough idea on what should get into the next iteration. Without disturbing the current iteration, some members of the team should get into an example writing workshop. This workshop should focus on realistic examples which can be converted to acceptance tests. According to Gojko,

The aim of the workshop is to build a shared understanding among developers, business people and testers about the aims for the next two weeks of work. A more tangible result of the workshop is realistic examples which can be converted to acceptance tests.

...

Because realistic examples are discussed and written down, inconsistencies and gaps should be easy to identify at that stage and we will get a solid foundation for the development. The workshop ends when everyone involved agrees that there are enough examples and that everything is clear enough to start the work. Meanwhile, for an ongoing iteration the acceptance tests for that iteration should be continuously simplified and organized better.

Lisa Crispin also focused on the importance of examples in defining the acceptance tests. However, she does caution that getting too much into the details would be counter productive. According to Lisa, her testing strategy works like this

  1. Preview meeting with PO + Conditions of Satisfaction - ask questions, get examples, slice big stories
  2. Iteration Planning
  3. High Level Acceptance Tests & other preparatory tasks such as obtaining test data and more examples
  4. Detailed Test Cases
  5. Write automated FitNesse tests (business-facing tests that guide development)
  6. Exploratory testing, automate GUI Smoke testing

Steps 4-6 are done for each user story.

Thus, acceptance testing should be an integral part of development for each iteration. The key lies in involving the business and development team upfront and having enough realistic examples to create useful acceptance tests.

  • This article is part of a featured topic series on Agile

Related Sponsor

In today’s hyper-competitive world, later may be too late to adopt Agile development and this Roadmap for Success will help you get started. Download "Agile Development: A Manager's Roadmap for Success" now!

thanks for reposting by Gojko Adzic Posted
Re: thanks for reposting by Emmanuel Hugonnet Posted
  1. Back to top

    thanks for reposting

    by Gojko Adzic

    Thanks for spreading the word - I actually stopped using the name example-writing workshop and I now call these exercises specification workshops, because it is easier to explain to business people that they should be involved something that has the name specification in it.

    Specification workshops are one of the most important practices for success with agile acceptance testing and specification by example, but very few teams so them. Organising specification workshops effectively is one of the central themes of my new book Bridging the communication gap.

  2. Back to top

    Re: thanks for reposting

    by Emmanuel Hugonnet

    I can't wait to read your book Gojko as I agree with your opinion that acceptance testing should be integrated in the development process.
    I think that Dan North's BDD with JBehave 2.x, Elisabeth Hendrickson's Acceptance Test Driven Development, or Dave Nicolett's TDR/FTTD are different names for the same idea.
    Now we need better tools for developers and business people so the two teams can be merged into a real product team.
    Emmanuel

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.