SlideShare a Scribd company logo
1 of 17
Download to read offline
Testing with Cucumber
Developing Cucumber-Based Automation
Why Automation?
Automated testing is important due to following reasons:
• Manual Testing of all work flows, all fields, all negative scenarios is time and cost
consuming
• Automation does not require Human intervention.
• Automation increases speed of test execution
• Automation helps increase Test Coverage
• Manual Testing can become boring and hence error prone.
Benefits of Automation Testing
3
4
Automation Process
Following steps are followed in an Automation Process
5
Cucumber
● Cucumber is a high-level testing framework that supports behavior
driven development.
● It runs automated acceptance tests on web applications.
● Cucumber is a tool that executes plain-text functional descriptions as
automated tests. The language that Cucumber understands is called
Gherkin.
Why Cucumber?
in a
Describe the behaviour of your software in
a very understandable way.
9
1 Describe
Behaviour
2 Write step
definition
3 Run and
fail
4 Write code
to make
step pass
5 Run and
pass
Feature Introduction
Every .feature file conventionally consists of a single feature. A line
starting with the keyword Feature followed by free indented text
starts a feature. A feature usually contains a list of scenarios.
scenarios together independent of your file and directory structure.
Cucumber Nomenclature
• Feature: Single file, ideally describing a single
feature
• Scenario: A test case
• Given-When-Then: Test Preconditions,
Execution and Postconditions
• And: Additional test constructs
11
Behaviour
Feature: <short description>
<story>
WHO? As a <role>
WHAT? I want <feature>
WHY? So that <business value>
Scenario: <description>
<scenario 1>
<scenario n>
Given <preconditions, context>
[And] <additional preconditions>
When <action, behaviour>
Then <postconditions>
[And] <additional postconditions>
What are the benefits?
• It is helpful to involve business stakeholders who can't easily read code
• Cucumber focuses on end-user experience
• Style of writing tests allow for easier reuse of code in the tests
• Quick and easy setup and execution
• Efficient tool for testing
• Instead of writing your tests purely in code, with Cucumber you start by
writing a human-readable user story. Then, you write code to run the story
and perform test(s) based on it.
15
Human Language support
17
Thank You!

More Related Content

What's hot

Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using Cucumber
KMS Technology
 

What's hot (20)

Selenium with Cucumber
Selenium  with Cucumber Selenium  with Cucumber
Selenium with Cucumber
 
Introduction to Bdd and cucumber
Introduction to Bdd and cucumberIntroduction to Bdd and cucumber
Introduction to Bdd and cucumber
 
Bdd – with cucumber and gherkin
Bdd – with cucumber and gherkinBdd – with cucumber and gherkin
Bdd – with cucumber and gherkin
 
Test Automation
Test AutomationTest Automation
Test Automation
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testing
 
BDD & Cucumber
BDD & CucumberBDD & Cucumber
BDD & Cucumber
 
Cucumber Tool
Cucumber ToolCucumber Tool
Cucumber Tool
 
Cucumber presentation
Cucumber presentationCucumber presentation
Cucumber presentation
 
Cucumber & gherkin language
Cucumber & gherkin languageCucumber & gherkin language
Cucumber & gherkin language
 
Gherkin /BDD intro
Gherkin /BDD introGherkin /BDD intro
Gherkin /BDD intro
 
QA. Load Testing
QA. Load TestingQA. Load Testing
QA. Load Testing
 
Cucumber presenation
Cucumber presenationCucumber presenation
Cucumber presenation
 
Automation Testing using Selenium
Automation Testing using SeleniumAutomation Testing using Selenium
Automation Testing using Selenium
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
 
Selenium Presentation at Engineering Colleges
Selenium Presentation at Engineering CollegesSelenium Presentation at Engineering Colleges
Selenium Presentation at Engineering Colleges
 
Why Should we use Microsoft's Playwright
Why Should we use Microsoft's PlaywrightWhy Should we use Microsoft's Playwright
Why Should we use Microsoft's Playwright
 
Behavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using CucumberBehavior Driven Development and Automation Testing Using Cucumber
Behavior Driven Development and Automation Testing Using Cucumber
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
RESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsRESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and Jenkins
 

Viewers also liked

Poultry diseases
Poultry diseasesPoultry diseases
Poultry diseases
h89sam
 
Broiler Farming Management Guide
Broiler Farming Management GuideBroiler Farming Management Guide
Broiler Farming Management Guide
Growel Agrovet Private Limited
 
Protected cultivation of vegetable crops BY HARMANJEET
Protected cultivation of vegetable crops BY HARMANJEETProtected cultivation of vegetable crops BY HARMANJEET
Protected cultivation of vegetable crops BY HARMANJEET
Student
 
Poultry Farming Training Course
Poultry Farming Training CoursePoultry Farming Training Course
Poultry Farming Training Course
Growel Agrovet Private Limited
 

Viewers also liked (20)

Poultry diseases
Poultry diseasesPoultry diseases
Poultry diseases
 
Peppermint oil
Peppermint oilPeppermint oil
Peppermint oil
 
Greenhouse Vegetable Production
Greenhouse Vegetable ProductionGreenhouse Vegetable Production
Greenhouse Vegetable Production
 
INFORMATION AND COMMUNICATION TECHNOLOGY FOR SENIOR HIGH SCHOOL
INFORMATION AND COMMUNICATION TECHNOLOGY FOR SENIOR HIGH SCHOOLINFORMATION AND COMMUNICATION TECHNOLOGY FOR SENIOR HIGH SCHOOL
INFORMATION AND COMMUNICATION TECHNOLOGY FOR SENIOR HIGH SCHOOL
 
A Colour Atlas of Poultry Diseases.
A Colour Atlas of Poultry Diseases.A Colour Atlas of Poultry Diseases.
A Colour Atlas of Poultry Diseases.
 
Diseases Of Cucumber
Diseases Of CucumberDiseases Of Cucumber
Diseases Of Cucumber
 
Net house vegetable production (2011)
Net house vegetable production (2011)Net house vegetable production (2011)
Net house vegetable production (2011)
 
Processing and Marketing of Herbs and Spices
Processing and Marketing of Herbs and SpicesProcessing and Marketing of Herbs and Spices
Processing and Marketing of Herbs and Spices
 
Broiler Farming Management Guide
Broiler Farming Management GuideBroiler Farming Management Guide
Broiler Farming Management Guide
 
Mint ppt
Mint pptMint ppt
Mint ppt
 
Biofertilizer Production and Application
Biofertilizer Production and ApplicationBiofertilizer Production and Application
Biofertilizer Production and Application
 
Protected cultivation of vegetable crops BY HARMANJEET
Protected cultivation of vegetable crops BY HARMANJEETProtected cultivation of vegetable crops BY HARMANJEET
Protected cultivation of vegetable crops BY HARMANJEET
 
Freeze drying ppt
Freeze drying pptFreeze drying ppt
Freeze drying ppt
 
Canning ppt.
Canning ppt.Canning ppt.
Canning ppt.
 
Broiler Farming Guide
Broiler Farming GuideBroiler Farming Guide
Broiler Farming Guide
 
Peppermint (Mentha pipertia)
Peppermint (Mentha pipertia)Peppermint (Mentha pipertia)
Peppermint (Mentha pipertia)
 
Poultry Farming Training Course
Poultry Farming Training CoursePoultry Farming Training Course
Poultry Farming Training Course
 
Peppermint
PeppermintPeppermint
Peppermint
 
Lyophilization
LyophilizationLyophilization
Lyophilization
 
Poultry Diseases Cause, Diagnosis, Control & Treatment
Poultry Diseases  Cause, Diagnosis, Control & TreatmentPoultry Diseases  Cause, Diagnosis, Control & Treatment
Poultry Diseases Cause, Diagnosis, Control & Treatment
 

Similar to Cucumber ppt

Qtp training session I
Qtp training session IQtp training session I
Qtp training session I
Aisha Mazhar
 
Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
Vartika Saxena
 
Test Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh DahalTest Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh Dahal
QA or the Highway
 

Similar to Cucumber ppt (20)

Qtp training session I
Qtp training session IQtp training session I
Qtp training session I
 
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-54&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
 
Tools for Software Testing
Tools for Software TestingTools for Software Testing
Tools for Software Testing
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools Overview
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Use Jenkins For Continuous Load Testing And Mobile Test Automation
Use Jenkins For Continuous Load Testing And Mobile Test AutomationUse Jenkins For Continuous Load Testing And Mobile Test Automation
Use Jenkins For Continuous Load Testing And Mobile Test Automation
 
Automation Tool Overview
Automation Tool OverviewAutomation Tool Overview
Automation Tool Overview
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools Overview
 
Testing with cucumber testing framework
Testing with cucumber testing frameworkTesting with cucumber testing framework
Testing with cucumber testing framework
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Software testing
Software testingSoftware testing
Software testing
 
Continuous Integration, Deploy, Test From Beginning To End 2014
Continuous Integration, Deploy, Test From Beginning To End 2014Continuous Integration, Deploy, Test From Beginning To End 2014
Continuous Integration, Deploy, Test From Beginning To End 2014
 
Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test Complete
 
Test automation lesson
Test automation lessonTest automation lesson
Test automation lesson
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
 
Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6Browser-Based Load Testing with Grafana K6
Browser-Based Load Testing with Grafana K6
 
Functional Testing of RESTful Applications
Functional Testing of RESTful ApplicationsFunctional Testing of RESTful Applications
Functional Testing of RESTful Applications
 
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test AutomationSTARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
 
QAorHighway2016
QAorHighway2016QAorHighway2016
QAorHighway2016
 
Test Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh DahalTest Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh Dahal
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 

Cucumber ppt

  • 1. Testing with Cucumber Developing Cucumber-Based Automation
  • 2. Why Automation? Automated testing is important due to following reasons: • Manual Testing of all work flows, all fields, all negative scenarios is time and cost consuming • Automation does not require Human intervention. • Automation increases speed of test execution • Automation helps increase Test Coverage • Manual Testing can become boring and hence error prone.
  • 4. 4
  • 5. Automation Process Following steps are followed in an Automation Process 5
  • 6. Cucumber ● Cucumber is a high-level testing framework that supports behavior driven development. ● It runs automated acceptance tests on web applications. ● Cucumber is a tool that executes plain-text functional descriptions as automated tests. The language that Cucumber understands is called Gherkin.
  • 8. in a Describe the behaviour of your software in a very understandable way.
  • 9. 9 1 Describe Behaviour 2 Write step definition 3 Run and fail 4 Write code to make step pass 5 Run and pass
  • 10. Feature Introduction Every .feature file conventionally consists of a single feature. A line starting with the keyword Feature followed by free indented text starts a feature. A feature usually contains a list of scenarios. scenarios together independent of your file and directory structure.
  • 11. Cucumber Nomenclature • Feature: Single file, ideally describing a single feature • Scenario: A test case • Given-When-Then: Test Preconditions, Execution and Postconditions • And: Additional test constructs 11
  • 12. Behaviour Feature: <short description> <story> WHO? As a <role> WHAT? I want <feature> WHY? So that <business value>
  • 13. Scenario: <description> <scenario 1> <scenario n> Given <preconditions, context> [And] <additional preconditions> When <action, behaviour> Then <postconditions> [And] <additional postconditions>
  • 14.
  • 15. What are the benefits? • It is helpful to involve business stakeholders who can't easily read code • Cucumber focuses on end-user experience • Style of writing tests allow for easier reuse of code in the tests • Quick and easy setup and execution • Efficient tool for testing • Instead of writing your tests purely in code, with Cucumber you start by writing a human-readable user story. Then, you write code to run the story and perform test(s) based on it. 15