Download presentation
Presentation is loading. Please wait.
Published byAleesha Horn Modified over 9 years ago
1
Janet Gregory, DragonFire Inc. Copyright 2013 SDC 2013 Goteborg, Sweden
2
Copyright 2013 DragonFire Inc. 1.Intro 2.Tiny bit about agile 3.What is ATDD 4.Work through an example 5.Wrap-up Clarifying questions accepted throughout Q & A after
3
Copyright 2013 DragonFire Inc. First agile team – 2000 Currently – coaching, testing Book – Agile Testing; January 2009 3
4
Copyright 2013 DragonFire Inc. Programmers? Testers? Business stakeholders? Other? Who has an understanding of TDD? Who has an understanding of ATDD?
5
Copyright 2013 DragonFire Inc. more than “just” testing code an activity; not a phase 5 Potentially shippable product
6
Copyright 2013 DragonFire Inc. has many
7
Copyright 2013 DragonFire Inc. “Begin with the end in mind.” — Stephen R. Covey
9
Picture by Augusta Evangelisti, based on diagram from Elisabeth Hendrickson Featuresor
10
Copyright 2013 DragonFire Inc. User Story Expand Tests High level AT Auto- mate tests TDD & Execute tests Explore ++ other testing Accept Story Fix defects Explore examples 10
11
Copyright 2013 DragonFire Inc. Tests / Examples Test Method / Fixture Developer Code passes to calls API test structure Test Framework
12
Create account with user name and password High level acceptance tests to start the conversation Let’s look at an example story User NamePasswordExpected resultcomments JanetGregoryPasswordAccess system as JanetGregory Valid combo saved Janet GregoryPasswordErrorSpace in user name JanetGregoryAbcErrorInvalid password
13
Copyright 2013 DragonFire Inc. 1.What constitutes valid / invalid user names? 2.What constitutes valid / invalid passwords? 3.I notice you don’t have a confirm password … Is that something we overlooked? 4.What happens if you have duplicate use names? 5.Can there be more than one password the same? 6.How many times can they make a mistake?
14
More examples formalized into tests 14 User NamePassword Password2Expected resultComments JanetGregoryPassword Access system as JanetGregory Valid combo saved Janet GregoryPassword ErrorSpace in user name Janet#GregoryPassword ErrorSpecial char not allowed Password ErrorBlank user name JanetGregoryPassword Password2ErrorConfirm password does not match JanetGregoryPassword ErrorUser already exists JanetGregoryAbc ErrorNot enough char in password JanetGregoryErrorBlank password
15
Copyright 2013 DragonFire Inc. Fit FitNesse Cucumber Robot, framework jBehave / Rspec SpecFlow Easyb rSpec Groovy Concordia ….. etc….
16
Copyright 2013 DragonFire Inc. Examples provide common language Defines a DSL (domain specific language) Shared common understanding of the problem Shared definition of DONE Coding and testing concurrently Involves whole team Prevents defects Executable specifications: living documentation Test at the API level (usually) – faster tests 16
17
Copyright 2013 DragonFire Inc. ATDD and TDD are not enough! Exploratory testing ◦ for things we didn’t think about Thinking about quality attributes / constraints ◦ for ‘fit and finish’ 17
18
Copyright 2013 DragonFire Inc. Markus Gartner, ATDD by Example Gojko Adzic, Bridging the Communication Gap http://testobsessed.com/wp- content/uploads/2011/04/atddexample.pdf http://testobsessed.com/ Elisabeth Hendrickson, Explore It! Ellen Gottesdiener and Mary Gorman, Discover to Deliver
19
Copyright 2013 DragonFire Inc. Now Available Agile Testing: A Practical Guide for Testers and Agile Teams By Lisa Crispin and Janet Gregory www.agiletester.ca My contact info www.janetgregory.ca http://janetgregory.blogspot.com/ Email: janet@agiletester.ca www.lisacrispin.com http://lisacrispin.com Email: lisa@agiletester.ca 19
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.