sgin2013-scrumstartrek-cucumberrecipes-sonikchopra
TRANSCRIPT
![Page 1: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/1.jpg)
Cucumber Recipes
Sonik ChopraPMI ACP, PMPAgile Coach, ManagerPitney Bowes Software
![Page 2: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/2.jpg)
What is Cucumber?
• Serves as documentation, automated tests and development-aid - all rolled into one format.
• Written by the team, in a language understood by all.
• Cucumber is a Behaviour Driven Development tool.
![Page 3: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/3.jpg)
Agenda
• Introduction to BDD• BDD Vs TDD• Cucumber Features• Demo: The real power of Cucumber• Integration with different languages and
platforms
![Page 4: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/4.jpg)
Behaviour Driven Development
Implementing an application by describing its behaviour by the perspective of its stakeholders..
Dan North
![Page 5: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/5.jpg)
But don’t we already do this??
![Page 6: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/6.jpg)
What we really do….As a professional, I want to search for a conference in India so that I can upgrade my skillset.
? User Stories are High Level? Where to start with TDD?? What to Test and what not to Test? What to call the tests?? How much to test in one go?
![Page 7: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/7.jpg)
Restricted view on Behaviour
![Page 8: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/8.jpg)
Difference in thinking
SITELOCATION
PLACE
AREA
LOCALITY
DEV QA BA CLIENT PO
![Page 9: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/9.jpg)
Increased Ambiguity LOST
![Page 10: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/10.jpg)
BDD – Outside In Pull Based
VISION
GOAL
FEATURE
STORY
SCENARIO
CODE
![Page 11: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/11.jpg)
Scenarios and Examples in Ubiquitous Language
HAVING CONVERSATION IS MORE IMPORTANT
TALKING THROUGH EXAMPLES HELP DISCOVER
CONSIDERS MULTIPLE STAKEHOLDERS
![Page 12: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/12.jpg)
BDD Vs TDD
• Development Methodology Vs Development Technique
• Business Driven Vs Design Approach• Customer Writing Tests Vs Developers writing
Tests• Focus on Behavioural Aspect Vs Implementation
Aspect
![Page 13: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/13.jpg)
Cucumber Example…
Story: As a user I want to login with my details So that I can get access to the site
Scenario: User uses wrong password
Given a username 'jdoe' And a password 'letmein'When the user logs in with username and passwordThen the login form should be shown again
GHERKIN LANGUAGE
Gherkin Supports 40+ Languages.
![Page 14: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/14.jpg)
Cucumber at a glance…
Written in plain English Language using Gherkin
Source Code in Ruby Or Java Or Dot Net etc
![Page 15: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/15.jpg)
DEMO of Cucumber Capabilities
![Page 16: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/16.jpg)
Cucumber for Dot Net
SpecFlow
Iron Ruby
Cuke4Nuke
Integration with other platforms
![Page 17: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/17.jpg)
• TestBot Or Hydra : Tools used to run Cucumber tests in parallel. You can also use Jenkins and create slave machines.
• Relish: A service to publish cucumber features as documentation
• FactoryGirl GEM: Test Data Builder• Easy to Integrate with CI environment.
Cucumber Add Ons
![Page 18: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/18.jpg)
Summary
• Cucumber is a BDD tool.• One stop shop for Requirements,
Development, Scenarios and Acceptance test.• Written by the team, in a language understood
by all.• Easy to integrate with different environments.• Supported in multiple languages and
platforms.
![Page 19: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/19.jpg)
Thank You
Sonik ChopraPMI ACP, PMPAgile Coach, ManagerPitney Bowes Software
[email protected]://in.linkedin.com/in/sonikchopraTwitter: @sonikchopra
![Page 20: SGIN2013-ScrumStartRek-CucumberRecipes-SonikChopra](https://reader033.vdocuments.net/reader033/viewer/2022060109/5553ac38b4c905d4448b48b8/html5/thumbnails/20.jpg)
Photo Credits• http://www.drinkingo.com/wp-content/uploads/
2011/12/cucumber.jpg• http://t0.gstatic.com/images?
q=tbn:ANd9GcT1FW_GP53v1b38wzbmZ569jzA1aooBpxG-vGl6fkB0YLRBMRbp
• http://t1.gstatic.com/images?q=tbn:ANd9GcQAesiC-VaTAnisaVnVkF2xjEIC-ONQhX6adAWOWcTAZQFuDVVSjg
• http://t2.gstatic.com/images?q=tbn:ANd9GcQrrJsV3DnQ-mLK6_uW_jWtU0tAitACM-GOPPxSoyDronBoQgIvKg
• http://www.flickr.com/photos/heimatiater/3256903620/• http://t2.gstatic.com/images?q=tbn:ANd9GcQrrJsV3DnQ-
mLK6_uW_jWtU0tAitACM-GOPPxSoyDronBoQgIvKg