SlideShare a Scribd company logo
Acceptance criteria
with SpecFlow
project case study
                      June 2010
#1 CONTEXT
Project GQ OSCA
    Using Scrum
    core team of 5
    started in June 2009
    Using XP techniques
      pair programming
      TDD
.NET 3.5
C#
SQL 2005
TFS 2008 with STS
Visual Studio 2008 with Resharper
NHibernate
Hitachi Framework

ASP.NET MVC
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
#2 EVOLUTION
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
#3 ACCEPTANCE TESTING
As a GQ OSCA Administrator I want to
Create a new EME window for an
academic year so that I can configure
the assessment material for a paper
Acceptance Criteria
• User select 'Add New Window' creates new row
  for date
• User can use Calendar Select to select Start
  Date, End Date, and Publish Date
• For Start Date: Must be within Academic year,
  and not within another existing window
• For End Date: Must be after Start Date, and not
  within another existing window
• For Commentary Publish Date: Must be after End
  Date, and not within another existing window
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Scenario #1
• EME Start Date is outside Academic Year
  – GIVEN
    • the EME Start Date is outside of the current
      Academic Year
  – WHEN
    • the GQ OSCA Administrator tries to save the
      EME Window details
  – THEN
    • the form should display an error message stating
      that the start date must be within the Academic
      Year
Scenario #2
• EME Start Date is before EME End Date
  – GIVEN
    • the EME Start Date is after the EME End Date
  – WHEN
    • the GQ OSCA Administrator tries to save the
      EME Window details
  – THEN
    • the form should display an error message stating
      that the Start Date must be before the End Date
Scenario #3
• Existing EME Window and new EME Window
  Start Date is in existing EME Window
  – GIVEN
    • An EME Window already exists
    • the new EME Start Date is within the existing EME
      Window
  – WHEN
    • the GQ OSCA Administrator saves the EME Window
      details
  – THEN
    • the form should display an error message stating that
      the Start Date must not be within another EME
      Window
Workflow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
#4 SPECFLOW
Gherkin
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
prepare context
set state
execute actions
make assertions
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
#5 MORE EXAMPLES
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Acceptance Criteria with SpecFlow
Challenges
•   Users writing the acceptance tests
•   Meaningful tests
•   Correct granularity of acceptance tests
•   Coverage
Reference
• Gherking
 http://wiki.github.com/aslakhellesoy/cucumber/
 gherkin
• Cucumber
  http://cukes.info/
• SpecFlow
  http://www.specflow.org/
http://creativecommons.org/licenses/by-nd/2.0/uk/

More Related Content

PPTX
Dev ops certification training course
ODP
Knolx j query-form-validation-slides
PDF
Java microservicesspringbootcasestudy2
PPTX
Configuring Anypoint Studio MQ connector
PPTX
Selenium IDE
PPT
2310 b 02
PPTX
Acceptance criteria
PDF
IIT Academy: 204 User stories and acceptance criteria
Dev ops certification training course
Knolx j query-form-validation-slides
Java microservicesspringbootcasestudy2
Configuring Anypoint Studio MQ connector
Selenium IDE
2310 b 02
Acceptance criteria
IIT Academy: 204 User stories and acceptance criteria

Viewers also liked (20)

PPTX
Acceptance criteria
PDF
Acceptance Criteria
DOC
Prince 2, project managment Document Acceptance criteria
PPT
Usability "на коленке"
PPTX
CloudSpokes Overview
PDF
Acceptance criteria reloaded
PPT
Acceptance Test Driven Development With Spec Flow And Friends
PPTX
7-point checklist that every Project Manager needs to look at
PPTX
Getting to Done, Usably: User Experience Acceptance Criteria on Agile Projects
PPT
User Stories
PPSX
Business Idea Brainstorming and Evaluation Techniques
PDF
Evaluation process and criteria june 2 2015 final
DOCX
Relief Line - Draft Evaluation Process and Criteria
PPT
Writing Effective User Stories
PDF
FITT Toolbox: Evaluation Criteria
PDF
How we increased our productivity with good acceptance criteria
PPTX
User stories and use cases - Клаудия Заика
PDF
Tech talk specflow_bddx_hassa_nagy
PPT
Brainstorming techniques
PDF
Agile Acceptance Criteria How To
Acceptance criteria
Acceptance Criteria
Prince 2, project managment Document Acceptance criteria
Usability "на коленке"
CloudSpokes Overview
Acceptance criteria reloaded
Acceptance Test Driven Development With Spec Flow And Friends
7-point checklist that every Project Manager needs to look at
Getting to Done, Usably: User Experience Acceptance Criteria on Agile Projects
User Stories
Business Idea Brainstorming and Evaluation Techniques
Evaluation process and criteria june 2 2015 final
Relief Line - Draft Evaluation Process and Criteria
Writing Effective User Stories
FITT Toolbox: Evaluation Criteria
How we increased our productivity with good acceptance criteria
User stories and use cases - Клаудия Заика
Tech talk specflow_bddx_hassa_nagy
Brainstorming techniques
Agile Acceptance Criteria How To
Ad

Recently uploaded (20)

PDF
A comparative analysis of optical character recognition models for extracting...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PDF
Getting Started with Data Integration: FME Form 101
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Enhancing emotion recognition model for a student engagement use case through...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Hybrid model detection and classification of lung cancer
PPTX
1. Introduction to Computer Programming.pptx
PDF
project resource management chapter-09.pdf
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PPTX
A Presentation on Touch Screen Technology
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
A comparative analysis of optical character recognition models for extracting...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Hindi spoken digit analysis for native and non-native speakers
Heart disease approach using modified random forest and particle swarm optimi...
Getting Started with Data Integration: FME Form 101
NewMind AI Weekly Chronicles - August'25-Week II
cloud_computing_Infrastucture_as_cloud_p
Enhancing emotion recognition model for a student engagement use case through...
OMC Textile Division Presentation 2021.pptx
A novel scalable deep ensemble learning framework for big data classification...
TLE Review Electricity (Electricity).pptx
Hybrid model detection and classification of lung cancer
1. Introduction to Computer Programming.pptx
project resource management chapter-09.pdf
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A Presentation on Touch Screen Technology
Univ-Connecticut-ChatGPT-Presentaion.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Ad

Acceptance Criteria with SpecFlow