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

Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Mindfire Solutions
 
Bdd – with cucumber and gherkin
Bdd – with cucumber and gherkinBdd – with cucumber and gherkin
Bdd – with cucumber and gherkinArati Joshi
 
BDD WITH CUCUMBER AND JAVA
BDD WITH CUCUMBER AND JAVABDD WITH CUCUMBER AND JAVA
BDD WITH CUCUMBER AND JAVASrinivas Katakam
 
Cucumber presentation
Cucumber presentationCucumber presentation
Cucumber presentationAkhila B
 
BDD testing with cucumber
BDD testing with cucumberBDD testing with cucumber
BDD testing with cucumberDaniel Kummer
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.pptAna Sarbescu
 
API Automation Testing Using RestAssured+Cucumber
API Automation Testing Using RestAssured+CucumberAPI Automation Testing Using RestAssured+Cucumber
API Automation Testing Using RestAssured+CucumberKnoldus Inc.
 
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
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation TestingArchana Krushnan
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using SeleniumWeifeng Zhang
 

What's hot (20)

Cucumber presenation
Cucumber presenationCucumber presenation
Cucumber presenation
 
Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)
 
Cucumber & gherkin language
Cucumber & gherkin languageCucumber & gherkin language
Cucumber & gherkin language
 
Bdd – with cucumber and gherkin
Bdd – with cucumber and gherkinBdd – with cucumber and gherkin
Bdd – with cucumber and gherkin
 
BDD WITH CUCUMBER AND JAVA
BDD WITH CUCUMBER AND JAVABDD WITH CUCUMBER AND JAVA
BDD WITH CUCUMBER AND JAVA
 
Cucumber presentation
Cucumber presentationCucumber presentation
Cucumber presentation
 
Selenium ppt
Selenium pptSelenium ppt
Selenium ppt
 
Selenium Automation Framework
Selenium Automation  FrameworkSelenium Automation  Framework
Selenium Automation Framework
 
BDD testing with cucumber
BDD testing with cucumberBDD testing with cucumber
BDD testing with cucumber
 
Web automation using selenium.ppt
Web automation using selenium.pptWeb automation using selenium.ppt
Web automation using selenium.ppt
 
API Automation Testing Using RestAssured+Cucumber
API Automation Testing Using RestAssured+CucumberAPI Automation Testing Using RestAssured+Cucumber
API Automation Testing Using RestAssured+Cucumber
 
Rest assured
Rest assuredRest assured
Rest assured
 
Cucumber Tool
Cucumber ToolCucumber Tool
Cucumber Tool
 
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
 
Automation testing
Automation testingAutomation testing
Automation testing
 
BDD & Cucumber
BDD & CucumberBDD & Cucumber
BDD & Cucumber
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Selenium
SeleniumSelenium
Selenium
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Gatling
Gatling Gatling
Gatling
 

Viewers also liked

Poultry diseases
Poultry diseasesPoultry diseases
Poultry diseasesh89sam
 
Greenhouse Vegetable Production
Greenhouse Vegetable ProductionGreenhouse Vegetable Production
Greenhouse Vegetable Productionarchisacres
 
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 SCHOOLAbacheng Ghadafi
 
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 HARMANJEETStudent
 
Peppermint (Mentha pipertia)
Peppermint (Mentha pipertia)Peppermint (Mentha pipertia)
Peppermint (Mentha pipertia)Arslan Tahir
 
Poultry Diseases Cause, Diagnosis, Control & Treatment
Poultry Diseases  Cause, Diagnosis, Control & TreatmentPoultry Diseases  Cause, Diagnosis, Control & Treatment
Poultry Diseases Cause, Diagnosis, Control & TreatmentGrowel 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 IAisha Mazhar
 
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-5hemasubbu08
 
Tools for Software Testing
Tools for Software TestingTools for Software Testing
Tools for Software TestingMohammed Moishin
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools OverviewMurageppa-QA
 
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 AutomationClever Moe
 
Automation Tool Overview
Automation Tool OverviewAutomation Tool Overview
Automation Tool OverviewANKUR-BA
 
Automation Tools Overview
Automation Tools OverviewAutomation Tools Overview
Automation Tools OverviewSachin-QA
 
Testing with cucumber testing framework
Testing with cucumber testing frameworkTesting with cucumber testing framework
Testing with cucumber testing frameworkAIMDek Technologies
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation TestingFayis-QA
 
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 2014Clever Moe
 
Automation Testing with Test Complete
Automation Testing with Test CompleteAutomation Testing with Test Complete
Automation Testing with Test CompleteVartika Saxena
 
Test automation lesson
Test automation lessonTest automation lesson
Test automation lessonSadaaki Emura
 
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 K6Knoldus Inc.
 
Functional Testing of RESTful Applications
Functional Testing of RESTful ApplicationsFunctional Testing of RESTful Applications
Functional Testing of RESTful ApplicationsNenad Bozic
 
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 AutomationClever Moe
 
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 DahalQA 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

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
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.pdfsudhanshuwaghmare1
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Recently uploaded (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

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