Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar
-
Upload
india-scrum-enthusiasts-community -
Category
Technology
-
view
295 -
download
3
Transcript of Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar
![Page 1: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/1.jpg)
BDD An Automation Approach In AgilePresented by
Ms. Anita Pol (Business Consultant) & Mr. Sachin Salvekar (Solution Architect)
![Page 2: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/2.jpg)
We make Magic here, We are MASTEKEERS
Mastek stands for Management & Software Technology. Mastek is committed to individuals and institutions being the best they can be. Mastekeer is anyone who works for Mastek or has worked for Mastek.
Mastek creates leaders and our philosophy is “Once a Mastekeer always a Mastekeer”.
We started our journey in 1982 as one of the first IT companies in India & we believe that sustained contribution & a spotless reputation over the long run are more important than short-term growth and profits.
![Page 3: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/3.jpg)
Our Project challenges...
• Focus on Business benefits and quality• On time delivery• Continuous Integration with product • Detecting problems at an early stage• Collaboration• Unclear requirements• High defect injection ratio• Legacy System
![Page 4: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/4.jpg)
Evolving Through Agile...
• Business Benefit
?ATDDTDD
• Developer Centric• Specialized Skills • Scope for Misinterpretation
• Solution Centric
• Integration Issues
• Business Centric
• CI
• Clear Business Requirement
BDD
1. Can I transfer from current to savings account on a click of transfer button?
2. Can I get popup “Insufficient fund” on no balance, on click of a transfer button?
![Page 5: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/5.jpg)
BDD – Behavioral Driven Development
What is BDD?
• An Agile software engineering practice that focuses to• Deliver business value• Drive collaboration• Increase communication • Enhance quality
• Augments ATDD
![Page 6: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/6.jpg)
BDD – Behavioral Driven Development
Why BDD?
• Identifies business behaviours and convert them into deliverable features
• Allows for better collaboration between concerned Stakeholders• Focuses on business value rather than usability and testability• Supports test automation/continuous delivery using set of tools• Acceptance criteria is written in plain English using Gherkin notation
![Page 7: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/7.jpg)
User Journey
User ActivityUser Task1User Task2
…User TaskN
![Page 8: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/8.jpg)
Story Life Cycle
![Page 9: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/9.jpg)
Story Example
Scenario 1Given…When…Then…
Scenario 2Given…When…Then…
As a <role> I need <requirement> so that <benefit>
Description Acceptance Criteria
Story Narrative
As a bank account holder, I want to transfer my funds online from my Current account to my Savings accountso that I have balance in my Savings account.
![Page 10: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/10.jpg)
Example Scenario ( Gherkin Syntax )
Scenario 1: Transferring money to a savings account Given I have a current account with Rs. “X”And I have a savings account with Rs. “Y”When I transfer Rs. “Z” from my current account to my savings account Then I should have Rs. “X – Z” in my current accountAnd I should have Rs. “Y + Z” in my savings account
Scenario 2: Account has insufficient funds
Given I have a current account with Rs. “X”And I have a savings account with Rs. “Y”When I transfer Rs. “X+Z” from my current account to my savings account Then I should be shown that there is insufficient fundThen I should have Rs. “X” in my current accountAnd I should have Rs. “Y” in my savings account
![Page 11: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/11.jpg)
Towards Automation…
Acceptance Criteria
Scenario 1Given…When…Then…
Scenario 2Given…When…Then…
Specflow - .NetJbehave – Java
Cucumber - Ruby
Cucumber Runner
![Page 12: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/12.jpg)
Reconciliation
Did BDD helped us to overcome the challenges?
• Focus on Business benefits and quality• On time delivery• Continuous Integration with product • Collaboration• Unclear Requirements• Detecting problems at an early stage• High defect injection ratio• Legacy System
![Page 13: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/13.jpg)
Challenges while moving towards BDD
• New concept• Lack of awareness• Resistance to change• Time-consuming refinement sessions• Difficult but not impossible to implement on Legacy systems
![Page 14: Agile Tour Pune 2015:Test automation using BDD - Anita Pol and Sachin Salvekar](https://reader035.fdocuments.us/reader035/viewer/2022062820/58a971811a28ab0a0a8b47c9/html5/thumbnails/14.jpg)
Thank You