SlideShare a Scribd company logo
Introduction 
to 
Automated Agile 
Testing 
© 2013 iZenBridge | CONFIDENTIAL 
Naveen Kumar Singh
Agile Testing 
• Software Developer, Agile coach and Trainer 
• Certified Scrum Professional (CSP), CSM, PMI-ACP, PMP 
• More than 17 Years of experience in Software development 
© 2013 iZenBridge | CONFIDENTIAL 
• Reach out to me 
• LinkedIn - in.linkedin.com/in/naveenkumarsingh1/ 
• Twitter - https://twitter.com/naveenhome 
• Mail – naveenhome@gmail.com 
• Blog - scrumcertifications.blogspot.in
Agile Testing 
© 2013 iZenBridge | CONFIDENTIAL
© 2013 iZenBridge | CONFIDENTIAL 
Expectation 
ROI 
Reusability 
Early Defect Detection 
Efficiency in test design 
+ execution 
Cost of Defect 
Cycle time 
Defect leakage 
Downtime
Testing Strategy and Roles 
Tester Developer 
© 2013 iZenBridge | CONFIDENTIAL 
New Test 
Case 
Exploratory 
Test 
Control 
Defects 
New Code 
Fix Defects 
Write Unit Test 
Setup CI Review Unit Test 
Setup Test Tool Test Report 
Review System Test Cases 
Write Test Scripts & execute 
test automations 
Agile team consideration: Pairing 
Pair Programming (XP) – Developer/ Tester, Tester/Tester, Tester/Business Analyst
At any point of time, QA 
• Test the current stories 
• Pair with Dev to automate n-1 stories 
• Pair with BA to analyze n+1 stories and write 
© 2013 iZenBridge | CONFIDENTIAL 
acceptance tests 
• N = current sprint
Test First Development 
TDD, BDD and ATDD 
© 2013 iZenBridge | CONFIDENTIAL
Test First Development 
Red 
TDD 
Cycle 
Clean Green 
Distill 
Demo 
© 2013 iZenBridge | CONFIDENTIAL 
Item 
Discuss 
Develop 
Story 
ATDD Cycle-Acceptance Test Driven 
Development (ATDD) Cycle
Test Driven Development 
Test driven development 
(TDD) 
•Think 
•Red 
•Green 
•Clean (Refractor) 
© 2013 iZenBridge | CONFIDENTIAL 
Test 
Code 
Refactor
Acceptance Test Driven Development 
Acceptance Test-Driven Development (ATDD) is a development 
methodology based on communication between the business customers, the 
developers, and the testers. 
ATDD encompasses many of the same practices as Specification by 
Example, Behavior Driven Development (BDD), Example-Driven 
Development (EDD), and Story Test-Driven Development (SDD). 
All these processes aid developers and testers in understanding the 
customer’s needs prior to implementation and allow customers to be able to 
converse in their own domain language. 
© 2013 iZenBridge | CONFIDENTIAL
Acceptance Criteria 
What to check at the end of development? 
Ordered Pizza online then Pizza get delivered at home or confirmation mail in 
your inbox 
© 2013 iZenBridge | CONFIDENTIAL
Advantage of ATDD 
© 2013 iZenBridge | CONFIDENTIAL 
Close collaboration 
Seeing concrete, working software 
Building trust and confidence 
Customer in control 
Evolving a shared language 
Tests as a shared language 
Tests as specification 
Specification by example
Behavior Driven Development (BDD) 
BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, 
multiple-scale, high-automation, agile methodology. It describes a cycle of 
interactions with well-defined outputs, resulting in the delivery of working, 
tested software that matters. – Dan North 
© 2013 iZenBridge | CONFIDENTIAL
BDD is a Agile process 
BDD encourages collaboration between developers, QA and non-technical or 
business participants in a software project. 
© 2013 iZenBridge | CONFIDENTIAL
Behavior Driven Development (BDD) 
Given- Set of 
preconditions 
BDD 
Then-Some 
testable outcome 
When-When a 
event occurs 
© 2013 iZenBridge | CONFIDENTIAL
© 2013 iZenBridge | CONFIDENTIAL 
BDD 
Story: Returns go to stock 
In order to keep track of stock 
As a store owner 
I want to add items back to stock when they're returned 
Scenario 1: Refunded items should be returned to stock 
Given a customer previously bought a black sweater from me 
And I currently have three black sweaters left in stock 
When he returns the sweater for a refund 
Then I should have four black sweaters in stock
© 2013 iZenBridge | CONFIDENTIAL 
BDD 
Scenario 2: Replaced items should be returned to stock 
Given that a customer buys a blue garment 
And I have two blue garments in stock 
And three black garments in stock. 
When he returns the garment for a replacement in black, 
Then I should have three blue garments in stock 
And two black garments in stock
© 2013 iZenBridge | CONFIDENTIAL 
Tools 
ATDD 
FitNesse 
Spectacular 
Concordian 
Thucydides 
BDD 
SpecFlow 
Cumumber 
JBehave 
NBehave 
Behat 
TDD 
JUnit 
NUnit 
TestNG 
MSTest
BDD in Action 
Example using Java and Cucumber 
© 2013 iZenBridge | CONFIDENTIAL 
Write feature file 
Generate step file 
Execute test
BDD in Action 
© 2013 iZenBridge | CONFIDENTIAL 
Story 
As a account I want to add two numbers so that I get sum of the two 
numbers immediately without having to do manually. 
Acceptance Criteria 
1. It should only allow the integer numbers in the two fields 
2. The two numbers should be less than 1000 
3. The two numbers should not be less than 0 
4. The sum of the two numbers should be shown in the ‘Result’ field
Best Practices 
• Use BDD to collaborate 
• You may use it for Acceptance Test 
• Use TDD for coding 
• Refactor regularly 
• Refactor to Design Patterns 
• Focus on continuous Delivery 
© 2013 iZenBridge | CONFIDENTIAL
© 2013 iZenBridge | CONFIDENTIAL
Stay Connected 
Naveen Kumar Singh 
E : naveen@izenbridge.com 
M : +91 98105 47500 
T : @naveenhome 
S :http://www.scrumalliance.org/community/profile/nkumarsing 
L : https://www.linkedin.com/in/naveenkumarsingh1 
© 2013 iZenBridge | CONFIDENTIAL

More Related Content

PPTX
Test Driven Development presentation delhi meetup
PPTX
Behavior driven development - Deliver Value by Collaboration
PPTX
Practicing Agile through Scrum
PPTX
Definition of done training
PPT
Behavior Driven Development Pros and Cons
PPTX
Acceptance criteria
ODP
Introduction to BDD
PPTX
Agile testing presentation
Test Driven Development presentation delhi meetup
Behavior driven development - Deliver Value by Collaboration
Practicing Agile through Scrum
Definition of done training
Behavior Driven Development Pros and Cons
Acceptance criteria
Introduction to BDD
Agile testing presentation

What's hot (20)

PPTX
Agile Testing by Example
KEY
Testing and DevOps Culture: Lessons Learned
PPTX
DevOps in Action: How Nedbank went from quarterly to weekly releases in no ti...
PDF
Presentation of agile engineering practices
PPT
Trends in Agile Testing by Lisa Crispin
PPTX
Testing in a DevOps team
PDF
How testers add value to the organization appium conf
PDF
QA in Agile World
PDF
How to Ensure your Definition of Done is Well Done not Half-Baked
PDF
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019
PPTX
Engineering practices within scrum
PPTX
Agile testing - Testing From Day 1
PPTX
Making the Move to Behavior Driven Development
PDF
Agile engineering practices – a short overview
PDF
Behavior Driven Development—A Guide to Agile Practices by Josh Eastman
PPTX
Definition of Done and Product Backlog refinement
PDF
The digital shakeout in quality assurance and testing by Shiva Agolla and Sat...
PPTX
ALE15 The real value of a definition of done
PPTX
The Evolution of Test Automation for DevOps
PPTX
Java Code Quality Improvements - DevWeek
Agile Testing by Example
Testing and DevOps Culture: Lessons Learned
DevOps in Action: How Nedbank went from quarterly to weekly releases in no ti...
Presentation of agile engineering practices
Trends in Agile Testing by Lisa Crispin
Testing in a DevOps team
How testers add value to the organization appium conf
QA in Agile World
How to Ensure your Definition of Done is Well Done not Half-Baked
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019
Engineering practices within scrum
Agile testing - Testing From Day 1
Making the Move to Behavior Driven Development
Agile engineering practices – a short overview
Behavior Driven Development—A Guide to Agile Practices by Josh Eastman
Definition of Done and Product Backlog refinement
The digital shakeout in quality assurance and testing by Shiva Agolla and Sat...
ALE15 The real value of a definition of done
The Evolution of Test Automation for DevOps
Java Code Quality Improvements - DevWeek
Ad

Similar to Automated agile testing using Cucumber (20)

PDF
Workshop on Test Driven Development (TDD) Noida
PPTX
Behavior driven development - cucumber, Junit and java
PDF
Lean , Pull System & Kanban |iZenBridge
PPTX
Prashant technical practices-tdd for xebia event
PDF
Agile Fundamentals
PDF
Atagg2015 Benefits of BDD in Digital Era
PPTX
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
PDF
Atagg2015 BDD in Test pyramid
PPTX
Refactoring Big Design Smells : Presented by Sanjay Kumar
PDF
Lean India Summit : From Productivity to Profitability
PPTX
Cucumber is a Behavior Driven Development tool used to develop test cases for...
PPTX
Myths and Challenges of Behaviour Driven Development
PDF
From Productivity to Profitability by Saket Bansal - Lean India Summit 2014
PDF
Approaching ATDD/BDD
PPTX
Continuous everything
PDF
How BDD enables True CI/CD
PDF
Inside Behavior Driven Development
PDF
Mastering BDD - Eran Kinsbruner Workshop Quest 2018
PDF
Webinar on Agile Metrics
PPTX
Quality Jam: BDD, TDD and ATDD for the Enterprise
Workshop on Test Driven Development (TDD) Noida
Behavior driven development - cucumber, Junit and java
Lean , Pull System & Kanban |iZenBridge
Prashant technical practices-tdd for xebia event
Agile Fundamentals
Atagg2015 Benefits of BDD in Digital Era
Building In Quality: The Beauty Of Behavior Driven Development (BDD)
Atagg2015 BDD in Test pyramid
Refactoring Big Design Smells : Presented by Sanjay Kumar
Lean India Summit : From Productivity to Profitability
Cucumber is a Behavior Driven Development tool used to develop test cases for...
Myths and Challenges of Behaviour Driven Development
From Productivity to Profitability by Saket Bansal - Lean India Summit 2014
Approaching ATDD/BDD
Continuous everything
How BDD enables True CI/CD
Inside Behavior Driven Development
Mastering BDD - Eran Kinsbruner Workshop Quest 2018
Webinar on Agile Metrics
Quality Jam: BDD, TDD and ATDD for the Enterprise
Ad

More from Naveen Kumar Singh (20)

PDF
Is scrum master an agile coach
PDF
Scrum + Kanban - why and why not mix together
PDF
Requirement management in agile software development
PDF
Sprint planning dos and don'ts presentation by Agilemania
PDF
The scrum master
PPTX
ScrumOps - Scrum + Practical DevOps
PPTX
Scrum plus – why scrum is not enough for successful delivery
PPTX
Practical DevOps
PDF
Explore Events of Scrum Framework
PDF
ICAgile Certified Professional - Foundation of DevOps
PPTX
Agile Testing and Test Automation
PPTX
Continuous integration in large programs
PPTX
Scrum + Behavior Driven Development (BDD) - Colombo
PPTX
Role of Manager in LeSS (Large-Scale Scrum)
PPTX
LeSS - Moving beyond single team scrum
PPTX
Descaling through LeSS (Large-Scale Scrum)
PPTX
Scrumban – lean software development
PPTX
Business intelligence - Microsoft Technologies
Is scrum master an agile coach
Scrum + Kanban - why and why not mix together
Requirement management in agile software development
Sprint planning dos and don'ts presentation by Agilemania
The scrum master
ScrumOps - Scrum + Practical DevOps
Scrum plus – why scrum is not enough for successful delivery
Practical DevOps
Explore Events of Scrum Framework
ICAgile Certified Professional - Foundation of DevOps
Agile Testing and Test Automation
Continuous integration in large programs
Scrum + Behavior Driven Development (BDD) - Colombo
Role of Manager in LeSS (Large-Scale Scrum)
LeSS - Moving beyond single team scrum
Descaling through LeSS (Large-Scale Scrum)
Scrumban – lean software development
Business intelligence - Microsoft Technologies

Recently uploaded (20)

PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
System and Network Administraation Chapter 3
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Transform Your Business with a Software ERP System
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
history of c programming in notes for students .pptx
PDF
top salesforce developer skills in 2025.pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
ai tools demonstartion for schools and inter college
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
How to Choose the Right IT Partner for Your Business in Malaysia
Reimagine Home Health with the Power of Agentic AI​
Odoo Companies in India – Driving Business Transformation.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
System and Network Administraation Chapter 3
Design an Analysis of Algorithms II-SECS-1021-03
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
CHAPTER 2 - PM Management and IT Context
Transform Your Business with a Software ERP System
Understanding Forklifts - TECH EHS Solution
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
VVF-Customer-Presentation2025-Ver1.9.pptx
history of c programming in notes for students .pptx
top salesforce developer skills in 2025.pdf
Upgrade and Innovation Strategies for SAP ERP Customers
ai tools demonstartion for schools and inter college
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
2025 Textile ERP Trends: SAP, Odoo & Oracle
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...

Automated agile testing using Cucumber

  • 1. Introduction to Automated Agile Testing © 2013 iZenBridge | CONFIDENTIAL Naveen Kumar Singh
  • 2. Agile Testing • Software Developer, Agile coach and Trainer • Certified Scrum Professional (CSP), CSM, PMI-ACP, PMP • More than 17 Years of experience in Software development © 2013 iZenBridge | CONFIDENTIAL • Reach out to me • LinkedIn - in.linkedin.com/in/naveenkumarsingh1/ • Twitter - https://twitter.com/naveenhome • Mail – naveenhome@gmail.com • Blog - scrumcertifications.blogspot.in
  • 3. Agile Testing © 2013 iZenBridge | CONFIDENTIAL
  • 4. © 2013 iZenBridge | CONFIDENTIAL Expectation ROI Reusability Early Defect Detection Efficiency in test design + execution Cost of Defect Cycle time Defect leakage Downtime
  • 5. Testing Strategy and Roles Tester Developer © 2013 iZenBridge | CONFIDENTIAL New Test Case Exploratory Test Control Defects New Code Fix Defects Write Unit Test Setup CI Review Unit Test Setup Test Tool Test Report Review System Test Cases Write Test Scripts & execute test automations Agile team consideration: Pairing Pair Programming (XP) – Developer/ Tester, Tester/Tester, Tester/Business Analyst
  • 6. At any point of time, QA • Test the current stories • Pair with Dev to automate n-1 stories • Pair with BA to analyze n+1 stories and write © 2013 iZenBridge | CONFIDENTIAL acceptance tests • N = current sprint
  • 7. Test First Development TDD, BDD and ATDD © 2013 iZenBridge | CONFIDENTIAL
  • 8. Test First Development Red TDD Cycle Clean Green Distill Demo © 2013 iZenBridge | CONFIDENTIAL Item Discuss Develop Story ATDD Cycle-Acceptance Test Driven Development (ATDD) Cycle
  • 9. Test Driven Development Test driven development (TDD) •Think •Red •Green •Clean (Refractor) © 2013 iZenBridge | CONFIDENTIAL Test Code Refactor
  • 10. Acceptance Test Driven Development Acceptance Test-Driven Development (ATDD) is a development methodology based on communication between the business customers, the developers, and the testers. ATDD encompasses many of the same practices as Specification by Example, Behavior Driven Development (BDD), Example-Driven Development (EDD), and Story Test-Driven Development (SDD). All these processes aid developers and testers in understanding the customer’s needs prior to implementation and allow customers to be able to converse in their own domain language. © 2013 iZenBridge | CONFIDENTIAL
  • 11. Acceptance Criteria What to check at the end of development? Ordered Pizza online then Pizza get delivered at home or confirmation mail in your inbox © 2013 iZenBridge | CONFIDENTIAL
  • 12. Advantage of ATDD © 2013 iZenBridge | CONFIDENTIAL Close collaboration Seeing concrete, working software Building trust and confidence Customer in control Evolving a shared language Tests as a shared language Tests as specification Specification by example
  • 13. Behavior Driven Development (BDD) BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters. – Dan North © 2013 iZenBridge | CONFIDENTIAL
  • 14. BDD is a Agile process BDD encourages collaboration between developers, QA and non-technical or business participants in a software project. © 2013 iZenBridge | CONFIDENTIAL
  • 15. Behavior Driven Development (BDD) Given- Set of preconditions BDD Then-Some testable outcome When-When a event occurs © 2013 iZenBridge | CONFIDENTIAL
  • 16. © 2013 iZenBridge | CONFIDENTIAL BDD Story: Returns go to stock In order to keep track of stock As a store owner I want to add items back to stock when they're returned Scenario 1: Refunded items should be returned to stock Given a customer previously bought a black sweater from me And I currently have three black sweaters left in stock When he returns the sweater for a refund Then I should have four black sweaters in stock
  • 17. © 2013 iZenBridge | CONFIDENTIAL BDD Scenario 2: Replaced items should be returned to stock Given that a customer buys a blue garment And I have two blue garments in stock And three black garments in stock. When he returns the garment for a replacement in black, Then I should have three blue garments in stock And two black garments in stock
  • 18. © 2013 iZenBridge | CONFIDENTIAL Tools ATDD FitNesse Spectacular Concordian Thucydides BDD SpecFlow Cumumber JBehave NBehave Behat TDD JUnit NUnit TestNG MSTest
  • 19. BDD in Action Example using Java and Cucumber © 2013 iZenBridge | CONFIDENTIAL Write feature file Generate step file Execute test
  • 20. BDD in Action © 2013 iZenBridge | CONFIDENTIAL Story As a account I want to add two numbers so that I get sum of the two numbers immediately without having to do manually. Acceptance Criteria 1. It should only allow the integer numbers in the two fields 2. The two numbers should be less than 1000 3. The two numbers should not be less than 0 4. The sum of the two numbers should be shown in the ‘Result’ field
  • 21. Best Practices • Use BDD to collaborate • You may use it for Acceptance Test • Use TDD for coding • Refactor regularly • Refactor to Design Patterns • Focus on continuous Delivery © 2013 iZenBridge | CONFIDENTIAL
  • 22. © 2013 iZenBridge | CONFIDENTIAL
  • 23. Stay Connected Naveen Kumar Singh E : naveen@izenbridge.com M : +91 98105 47500 T : @naveenhome S :http://www.scrumalliance.org/community/profile/nkumarsing L : https://www.linkedin.com/in/naveenkumarsingh1 © 2013 iZenBridge | CONFIDENTIAL