SlideShare ist ein Scribd-Unternehmen logo
1 von 15
La vengeance du concombre masqué: Tests d'Acceptance utilisateur  avec cucumber 21croissants.com RubyCamp Lyon – 21 février 2009
Fonctionnalités  utilisées Source: Aslak Hellesøy CHAOS report
Origine des erreurs Source: Aslak Hellesøy CHAOS report
Qui écrit et lit de la doc?
Fonctionnalité (VO) + = Spécification  & Tests d'acceptance exécutables Made by Aslak Hellesøy en  Août 2008 (v 0.1)
Fonctionnalité: Addition Afin de gagner du temps lors du  calcul de la facture En tant que commerçant  Je souhaite pouvoir additionner 2 nombres Valeur Rôle Fonctionnalité /features/additions.feature
Scénario: Addition de 2 nombres Soit une calculatrice Et que j'entre 1 pour le premier nombre Et que je tape sur la touche "+" Et que j'entre 1 pour le second nombre Lorsque je tape sur la touche "=" Alors le résultat affiché doit être 2 º SOIT: contexte, pré-conditions
Scénario: Addition de 2 nombres Soit une calculatrice Et que j'entre 1 pour le premier nombre Et que je tape sur la touche "+" Et que j'entre 1 pour le second nombre Lorsque je tape sur la touche "=" Alors le résultat affiché doit être 2 Lorsque: événement, action
Scénario: Addition de 2 nombres Soit une calculatrice Et que j'entre 1 pour le premier nombre Et que je tape sur la touche "+" Et que j'entre 1 pour le second nombre Lorsque je tape sur la touche "=" Alors le résultat affiché doit être 2 Alors: résultat, post-conditions
 
DEMO: script/cucumber
Cucumber & Webapps ,[object Object],[object Object],[object Object],[object Object],[object Object]
WEBAPP Ruby Acceptance Testing
 
Selenium rocks! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Andere mochten auch

Cerberus, un outil pour l'automatisation des tests fonctionnels
Cerberus, un outil pour l'automatisation des tests fonctionnelsCerberus, un outil pour l'automatisation des tests fonctionnels
Cerberus, un outil pour l'automatisation des tests fonctionnelsAurélien Bourdon
 
Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)CIVEL Benoit
 
Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...
Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...
Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...Jade Global
 
Fitnesse - Acceptance testing
Fitnesse - Acceptance testingFitnesse - Acceptance testing
Fitnesse - Acceptance testingvijay_challa
 
Introduction to BDD with Cucumber for Java
Introduction to BDD with Cucumber for JavaIntroduction to BDD with Cucumber for Java
Introduction to BDD with Cucumber for JavaSeb Rose
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comIdexcel Technologies
 
Agile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated TestingAgile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated TestingDimitri Ponomareff
 
La Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ans
La Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ansLa Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ans
La Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ansNé Kid
 
Responsabilidad CíVica Empresarial E Ungar
Responsabilidad CíVica Empresarial E UngarResponsabilidad CíVica Empresarial E Ungar
Responsabilidad CíVica Empresarial E UngarTransparenciaporColombia
 
Migrations PHP 5 - Solutions linux 2009
Migrations PHP 5 - Solutions linux 2009Migrations PHP 5 - Solutions linux 2009
Migrations PHP 5 - Solutions linux 2009Eric D.
 
Plateformes experimentalesphysiquetest2p
Plateformes experimentalesphysiquetest2pPlateformes experimentalesphysiquetest2p
Plateformes experimentalesphysiquetest2ppansub
 
LA EMPRESA
LA EMPRESALA EMPRESA
LA EMPRESAjonas
 

Andere mochten auch (20)

Cucumber Ecosystem Presentation
Cucumber Ecosystem PresentationCucumber Ecosystem Presentation
Cucumber Ecosystem Presentation
 
Cerberus, un outil pour l'automatisation des tests fonctionnels
Cerberus, un outil pour l'automatisation des tests fonctionnelsCerberus, un outil pour l'automatisation des tests fonctionnels
Cerberus, un outil pour l'automatisation des tests fonctionnels
 
Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)Cerberus : Framework for Manual and Automated Testing (Web Application)
Cerberus : Framework for Manual and Automated Testing (Web Application)
 
Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...
Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...
Xenon: Jade Automation Solution Automation | Testing Tools | Agile Test Autom...
 
Fitnesse - Acceptance testing
Fitnesse - Acceptance testingFitnesse - Acceptance testing
Fitnesse - Acceptance testing
 
Introduction to BDD with Cucumber for Java
Introduction to BDD with Cucumber for JavaIntroduction to BDD with Cucumber for Java
Introduction to BDD with Cucumber for Java
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Agile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated TestingAgile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated Testing
 
Reminder
ReminderReminder
Reminder
 
La Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ans
La Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ansLa Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ans
La Veille De Né Kid Du 17 03 10 : la fin de la ménagère de moins de 50 ans
 
Responsabilidad CíVica Empresarial E Ungar
Responsabilidad CíVica Empresarial E UngarResponsabilidad CíVica Empresarial E Ungar
Responsabilidad CíVica Empresarial E Ungar
 
Internet
InternetInternet
Internet
 
Maariyah
MaariyahMaariyah
Maariyah
 
Juan Diego Segundo Bimestre
Juan Diego Segundo BimestreJuan Diego Segundo Bimestre
Juan Diego Segundo Bimestre
 
Devil Doll
Devil DollDevil Doll
Devil Doll
 
Migrations PHP 5 - Solutions linux 2009
Migrations PHP 5 - Solutions linux 2009Migrations PHP 5 - Solutions linux 2009
Migrations PHP 5 - Solutions linux 2009
 
Plateformes experimentalesphysiquetest2p
Plateformes experimentalesphysiquetest2pPlateformes experimentalesphysiquetest2p
Plateformes experimentalesphysiquetest2p
 
Balenes
BalenesBalenes
Balenes
 
LA EMPRESA
LA EMPRESALA EMPRESA
LA EMPRESA
 
La web 2.0 en teleformación
La web 2.0 en teleformaciónLa web 2.0 en teleformación
La web 2.0 en teleformación
 

Mehr von Jean-Michel Garnier

2015 07 08_genevarb_maniok_presentation
2015 07 08_genevarb_maniok_presentation2015 07 08_genevarb_maniok_presentation
2015 07 08_genevarb_maniok_presentationJean-Michel Garnier
 
Fast web acceptance testing with selenium-grid
Fast web acceptance testing with selenium-gridFast web acceptance testing with selenium-grid
Fast web acceptance testing with selenium-gridJean-Michel Garnier
 
User Acceptance Testing Driven by Humans telling Stories (with RSpec)
User Acceptance Testing Driven by Humans telling Stories (with RSpec)User Acceptance Testing Driven by Humans telling Stories (with RSpec)
User Acceptance Testing Driven by Humans telling Stories (with RSpec)Jean-Michel Garnier
 
Intro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance TestingIntro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance TestingJean-Michel Garnier
 
Les Tests avec Ruby on Rails et RSpec (in French)
Les Tests avec Ruby on Rails et RSpec (in French)Les Tests avec Ruby on Rails et RSpec (in French)
Les Tests avec Ruby on Rails et RSpec (in French)Jean-Michel Garnier
 

Mehr von Jean-Michel Garnier (8)

2015 07 08_genevarb_maniok_presentation
2015 07 08_genevarb_maniok_presentation2015 07 08_genevarb_maniok_presentation
2015 07 08_genevarb_maniok_presentation
 
Tests Interfaces Web avec Rails
Tests Interfaces Web avec RailsTests Interfaces Web avec Rails
Tests Interfaces Web avec Rails
 
Fast web acceptance testing with selenium-grid
Fast web acceptance testing with selenium-gridFast web acceptance testing with selenium-grid
Fast web acceptance testing with selenium-grid
 
User Acceptance Testing Driven by Humans telling Stories (with RSpec)
User Acceptance Testing Driven by Humans telling Stories (with RSpec)User Acceptance Testing Driven by Humans telling Stories (with RSpec)
User Acceptance Testing Driven by Humans telling Stories (with RSpec)
 
Intro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance TestingIntro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance Testing
 
Les Tests avec Ruby on Rails et RSpec (in French)
Les Tests avec Ruby on Rails et RSpec (in French)Les Tests avec Ruby on Rails et RSpec (in French)
Les Tests avec Ruby on Rails et RSpec (in French)
 
Global Warming Lifestyle Change
Global Warming Lifestyle ChangeGlobal Warming Lifestyle Change
Global Warming Lifestyle Change
 
Testing Ruby on Rails (spanish)
Testing Ruby on Rails (spanish)Testing Ruby on Rails (spanish)
Testing Ruby on Rails (spanish)
 

Tests d'Acceptance utilisateur avec cucumber

  • 1. La vengeance du concombre masqué: Tests d'Acceptance utilisateur avec cucumber 21croissants.com RubyCamp Lyon – 21 février 2009
  • 2. Fonctionnalités utilisées Source: Aslak Hellesøy CHAOS report
  • 3. Origine des erreurs Source: Aslak Hellesøy CHAOS report
  • 4. Qui écrit et lit de la doc?
  • 5. Fonctionnalité (VO) + = Spécification & Tests d'acceptance exécutables Made by Aslak Hellesøy en Août 2008 (v 0.1)
  • 6. Fonctionnalité: Addition Afin de gagner du temps lors du calcul de la facture En tant que commerçant Je souhaite pouvoir additionner 2 nombres Valeur Rôle Fonctionnalité /features/additions.feature
  • 7. Scénario: Addition de 2 nombres Soit une calculatrice Et que j'entre 1 pour le premier nombre Et que je tape sur la touche "+" Et que j'entre 1 pour le second nombre Lorsque je tape sur la touche "=" Alors le résultat affiché doit être 2 º SOIT: contexte, pré-conditions
  • 8. Scénario: Addition de 2 nombres Soit une calculatrice Et que j'entre 1 pour le premier nombre Et que je tape sur la touche "+" Et que j'entre 1 pour le second nombre Lorsque je tape sur la touche "=" Alors le résultat affiché doit être 2 Lorsque: événement, action
  • 9. Scénario: Addition de 2 nombres Soit une calculatrice Et que j'entre 1 pour le premier nombre Et que je tape sur la touche "+" Et que j'entre 1 pour le second nombre Lorsque je tape sur la touche "=" Alors le résultat affiché doit être 2 Alors: résultat, post-conditions
  • 10.  
  • 12.
  • 14.  
  • 15.