Alister Scott wrote a really nice paper on designing good specifications with examples/bdd scenarios/acceptance tests – focused on Cucumber, but applicable to other tools as well. He captured how to evolve horrible scripts into something quite useful. I strongly recommend reading it, especially if you’re working with UI tests.
Now go to http://watirmelon.com/2011/05/18/specification-by-example-a-love-story/ and enjoy!
I'm Gojko Adzic, author of Impact Mapping and Specification by Example. To learn about discounts on my books, conferences and workshops, sign up for Impact or follow me on Twitter. Join me at these conferences and workshops:
Product Owner Survival Camp
Specification by Example Workshop
Conference talks and workshops