Gherkin Working
-
Upload
paroalonso -
Category
Documents
-
view
36 -
download
0
description
Transcript of Gherkin Working
www.cohesion.com | 877.774.3001
Exercise in converting requirements to Cucumber Gherkin
GHERKIN HANDS ON SESSION
www.cohesion.com | 877.774.3001
Introducing Joseph Ours
About Joseph
• Owns development and delivery of Cohesion's Quality Assurance and Testing Services
• More than 15 years of IT experience spanning several industries and roles
• Notable success managing multi-million dollar initiatives while introducing innovative solutions for Fortune 1000 companies, resulting in improved quality, increased client satisfaction, cost avoidance, on-time delivery, and establishing a true team culture
Contacting Me
@justjoehere
614.423.5253
www.linkedin.com/in/josephours
www.cohesion.com | 877.774.3001
Will’s and Won’ts
Will
Won’t
Briefly discuss Cucumber history and syntax to frame context
Take real world requirements and AS A GROUP write them in Gherkin syntax
Learn as a group
Write step definitions or actually wire up for automation
Watch Joe do it all
Learn agile processes, roles, or responsibilities
www.cohesion.com | 877.774.3001
A way to write requirements in
That is business readable in
Domain specific language
That describes behavior
And works awesomely well with automation
What is it?
Cucumber What is it
www.cohesion.com | 877.774.3001
Cucumber is actually a rewrite of Rspec Story Runner
Which was a rewrite of Rbehave
Which was a port of Jbehave
Over 7 years old
Cucumber - History
www.cohesion.com | 877.774.3001
• Features are:
• A narrative
• It is NOT executable
• Describes BUSINESS VALUE
• Something the user will enjoy when we are done developing
• Feature: <Title>
• As a <type of user/role>
• I want <perform some action>
• In order to <achieve a goal – related to business value>
• This should always answer WHY. If it doesn’t, it’s probably not needed.
• Best WHY’s related to increasing revenue, protecting revenue, and managing
costs
Cucumber Feature Syntax
www.cohesion.com | 877.774.3001
Cucumber FeatureScenarios
Scenario’s are your detailed
objectives – how you will know you’ve
delivered the feature
Format of:
Scenario – Title
Given – Pre-requisites
When – Action Step
Then – Results
www.cohesion.com | 877.774.3001
GOT IT?
Ready to move on?
www.cohesion.com | 877.774.3001
• Accountants for Ohio and Alaska must earn continuing education units to
maintain certification (CEU’s)
• This system will allow accountants to track their CEU’s and track their
progress
• The system will allow different state rules to be tracked
Let’s start with a BRD
www.cohesion.com | 877.774.3001
What Features Can YOU Create?
www.cohesion.com | 877.774.3001
Users
• Accountants for Ohio and Alaska must earn continuing education units to
maintain certification (CEU’s)
• This system will allow accountants to track their CEU’s and track their
progress
• The system will allow different state rules to be tracked
Let’s start with a BRD
Actions
WHY?
To maintain certification, usually
boils down to keeping your job!
www.cohesion.com | 877.774.3001
• Business Value is articulated, understood, meaningful
• Aligned with users/role
• Based on actions and goals – results oriented
In Features – Example
www.cohesion.com | 877.774.3001
• Accountants with jurisdiction in Alaska are required to complete continuing education units (CEU’s)
• CEU’s are accumulated over 2 years (called the period), and always end on odd years
• A total of 80 credits must be earned per period.
• However, at least 20 credits must be earned each year
• Of the total credits in the period:
• 4 must be related to ethics
• No more than 30 can be earned via teaching
• No more than 16 can be earned from alternate sponsors
• New licensee’s do not have any CEU requirements for the period in which they are licensed
• Licensee’s licensed in the last 3 months of the current period do not have any CEU requirements for the subsequent period
• System will total CEU’s based on “approvability” and display to the user
Let’s move on to SRS - Alaska
www.cohesion.com | 877.774.3001
• No right answer, only what works for you!
• One approach: Identify categories of requirements and work from the top
down
• By Role
• By Rule
• By Exception
How to break down the scenarios?
User/Role
Existing
Even Year
Number of Credits reported
Type of CEU
Odd Year
Number of Credits reported
Type of CEU
New
More than 3 months left
Less than 3 months left
www.cohesion.com | 877.774.3001
Let’s Identify Some Scenarios
www.cohesion.com | 877.774.3001
• Feature • Something the user will enjoy
• Scenario • Objective that details out (how you know your done) the feature
• This is no EASY answer as to how high level a feature should be • Single benefit
• Single activity
Work breakdown is the HARDEST part
A word about Features and Scenarios
www.cohesion.com | 877.774.3001
• Scenarios need detailed
• Variations of scenarios need documented
Example Scenarios
www.cohesion.com | 877.774.3001
ABOUT COHESION
www.cohesion.com | 877.774.3001
Assessments
Deployment Training
Strategy
Cohesion Services Regardless of industry or company size, business leadership struggles to
answer the question, "Am I getting true ROI and value from Testing?"
Improving Your Investment
Cohesion specializes in full
management consulting services
ranging from Strategic consulting
through resource deployment across
a broad range of specialties
including Enterprise Agile, Project
Management, Analysis, Application
Development, and Quality
Assurance
Our specialization in driving ROI and
value in the Testing space enables
us to affect ROI over the entire
lifecycle.
Enterprise Agile
Quality Assurance
Management and Analysis
Web and Application
Development
www.cohesion.com | 877.774.3001
We provide unparalleled project delivery and implement solutions supporting both traditional and Agile approaches. We have
extensive experience delivering high-profile projects for Fortune 500 clients. We proudly bring more than a decade of
experience and exceptional client satisfaction to the equation. Our genuine commitment to client success and our flexible
approach help us stand apart.
Strategic Role Based Consulting
Custom Solution Implementation
Project and Program Delivery
Value-Add Capability
Value
Cost
Typical Staffing Firms
Tier 1 Firms Specialty
Firms
Cohesion is a leading technology consulting firm that partners with clients to
optimize their technology investments.
www.cohesion.com | 877.774.3001
Differentiators
Relevant Skills
Success requires deep
knowledge on how business
can best leverage IT to
manage a wide variety of
business challenges.
Accelerators
Our accelerators are designed
to make your transition to agile
effective and efficient. We
bring real world experience,
leadership, and practicality to
Enterprise Agile.
Talented and High Impact
Resources
Our consultants come well
prepared to provide significant
value on all client engagements.
As part of our business model,
Cohesion attracts consultants
who have a passion for delivery
and thought leadership.
• Cincinnati
• Columbus
• Charlotte