SlideShare a Scribd company logo
TOOL
CUCUMBER TOOL
• Overview
• How It Works
• Environment
• Gherkin
• Feature
• Feature File
• Scenarios.
• Annotation.
• Advantages
OVER VIEW
• Cucumber is a high level testing Framework which supports behavior driven
development.
o It runs automated acceptance testing on web applications.
o It execute plain-text functional description as automated tests.
o It understand Gherkin Language.
AUTOMATED TESTING
• 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
HOW IT WORKS
HOW IT WORKS
• Cucumber reads the code written in plain English text (Language Gherkin) in the
feature file.
• It finds the exact match of each step in the step definition (a code file).
• The piece of code to be executed can be different software frameworks
like Selenium, Ruby on Rails, etc.
ENVIRONMENT
It has no specific setup but it give different libraries which can be used through
• Java
• Eclipse
• Cucumber supports over a dozen different software platforms like −
• Ruby on Rails
• Selenium
• Pico Container
• Spring Framework
• Watir
GHERKIN
• Cucumber executes the test scripts, which have been defined in the feature file.
• The language, in which this executable feature files is written, is known
as Gherkin.
• Gherkin is a plain English text language.
• which helps the tool Cucumber
• to interpret
• execute the test scripts.
GHERKIN
• Gherkin provides the common set of keywords in English text.
• It can be used by people amongst the different community and yet get the same
output in the form of test scripts
FEATURE
• A Feature can be defined as a standalone unit or functionality of a project.
• Few basic features can be determined as −
• Create and remove the user from the social networking site.
• User login functionality for the social networking site.
• Sharing photos or videos on the social networking site.
• Sending a friend request.
• Logout.
A feature usually contains a list of scenarios to be tested for that feature.
•
FEATURE FILE
• A simple feature file consists of the following keywords/parts −
• Feature − Name of the feature under test.
• Description (optional) − Describe about feature under test.
• Scenario − What is the test scenario.
• Given − Prerequisite before the test steps get executed.
• When − Specific condition which should match in order to execute the next step.
• Then − What should happen if the condition mentioned in WHEN is satisfied
SCENARIO
• Scenario is one of the core Gherkin structures
• Every scenario starts with the keyword “Scenario:”
• Each feature can have one or more scenarios.
• Every scenario consists of one or more steps.
• One feature more scenario more steps
A very simple example of scenario can be
• Scenario − Verify Help Functionality.
ANNOTATION
Cucumber Tool
ADVANTAGES OF CUCUMBER OVER OTHER TOOLS
• Supports different languages like Java.net and Ruby.
• Acts as a bridge between the business and technical language.
• It allows the test script to be written without knowledge of any code.
• It allows the involvement of non-programmers as well.
Cucumber Tool

More Related Content

PDF
Cucumber ppt
PPTX
Automated Test Framework with Cucumber
ODP
Test Automation Framework using Cucumber BDD overview (part 1)
PPTX
Cucumber BDD
PPTX
BDD WITH CUCUMBER AND JAVA
PPTX
Test Automation Framework with BDD and Cucumber
PDF
Web automation using selenium.ppt
PPTX
Cucumber presenation
Cucumber ppt
Automated Test Framework with Cucumber
Test Automation Framework using Cucumber BDD overview (part 1)
Cucumber BDD
BDD WITH CUCUMBER AND JAVA
Test Automation Framework with BDD and Cucumber
Web automation using selenium.ppt
Cucumber presenation

What's hot (20)

PDF
Selenium with Cucumber
ODP
BDD with Cucumber
PPT
Test Automation Framework Designs
PPTX
Saving Time By Testing With Jest
PPTX
What Is Cucumber?
PPT
Automation testing
PPSX
Test Complete
PPSX
PPTX
Selenium test automation
PPSX
Cucumber & gherkin language
PPTX
Automation test framework with cucumber – BDD
PDF
Test cases
PPT
PPTX
Automation Testing with Test Complete
PPTX
Setting up Page Object Model in Automation Framework
PPTX
Automation Testing
PPT
Agile testing
PPTX
Hybrid automation framework
PPTX
API Automation Testing Using RestAssured+Cucumber
PPTX
TestNG Session presented in PB
Selenium with Cucumber
BDD with Cucumber
Test Automation Framework Designs
Saving Time By Testing With Jest
What Is Cucumber?
Automation testing
Test Complete
Selenium test automation
Cucumber & gherkin language
Automation test framework with cucumber – BDD
Test cases
Automation Testing with Test Complete
Setting up Page Object Model in Automation Framework
Automation Testing
Agile testing
Hybrid automation framework
API Automation Testing Using RestAssured+Cucumber
TestNG Session presented in PB
Ad

Similar to Cucumber Tool (20)

PPTX
Cucumber jvm best practices v3
PPTX
Reliable mobile test automation
PDF
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Into...
PDF
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Adob...
PPTX
Testing (System Analysis and Design)
PPTX
Tools for Software Testing
PDF
Improving Batch-Process Testing Techniques with a Domain-Specific Language
PPTX
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
PPTX
Protractor survival guide
PDF
Testing Angular
PPTX
Test Automation Architecture That Works by Bhupesh Dahal
PPTX
Test automation proposal
PPTX
QAorHighway2016
PPTX
What is an Automation Framework ?
PPT
Automation Testing on Selenium by Quontra Solutions
PDF
Jose Luis Soria - XP2014 - Designing a Release Pipeline
PPTX
Writing Well Abstracted Automation on Foundations of Jello
PPTX
Test Driven Development
Cucumber jvm best practices v3
Reliable mobile test automation
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Into...
Introduction to Unit Testing, BDD and Mocking using TestBox & MockBox at Adob...
Testing (System Analysis and Design)
Tools for Software Testing
Improving Batch-Process Testing Techniques with a Domain-Specific Language
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
Protractor survival guide
Testing Angular
Test Automation Architecture That Works by Bhupesh Dahal
Test automation proposal
QAorHighway2016
What is an Automation Framework ?
Automation Testing on Selenium by Quontra Solutions
Jose Luis Soria - XP2014 - Designing a Release Pipeline
Writing Well Abstracted Automation on Foundations of Jello
Test Driven Development
Ad

More from Sohail Ahmed (6)

PPTX
Rabin Karp Algorithm
PPTX
Specify Noughts and crosses in Z Language
PPTX
Facial expression recognition on real world face images (OPTIK)
PPTX
Product Metrics
PPTX
PPTX
Expert System (Forward and Backward Chaining)
Rabin Karp Algorithm
Specify Noughts and crosses in Z Language
Facial expression recognition on real world face images (OPTIK)
Product Metrics
Expert System (Forward and Backward Chaining)

Recently uploaded (20)

PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
AI in Product Development-omnex systems
PPTX
Introduction to Artificial Intelligence
PPT
JAVA ppt tutorial basics to learn java programming
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Online Work Permit System for Fast Permit Processing
PDF
top salesforce developer skills in 2025.pdf
DOCX
The Five Best AI Cover Tools in 2025.docx
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Essential Infomation Tech presentation.pptx
PDF
Complete React Javascript Course Syllabus.pdf
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
System and Network Administration Chapter 2
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Transform Your Business with a Software ERP System
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PTS Company Brochure 2025 (1).pdf.......
AI in Product Development-omnex systems
Introduction to Artificial Intelligence
JAVA ppt tutorial basics to learn java programming
Design an Analysis of Algorithms I-SECS-1021-03
ISO 45001 Occupational Health and Safety Management System
Upgrade and Innovation Strategies for SAP ERP Customers
Online Work Permit System for Fast Permit Processing
top salesforce developer skills in 2025.pdf
The Five Best AI Cover Tools in 2025.docx
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Essential Infomation Tech presentation.pptx
Complete React Javascript Course Syllabus.pdf
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
How to Migrate SBCGlobal Email to Yahoo Easily
System and Network Administration Chapter 2
ManageIQ - Sprint 268 Review - Slide Deck
VVF-Customer-Presentation2025-Ver1.9.pptx
Transform Your Business with a Software ERP System
Design an Analysis of Algorithms II-SECS-1021-03

Cucumber Tool

  • 2. CUCUMBER TOOL • Overview • How It Works • Environment • Gherkin • Feature • Feature File • Scenarios. • Annotation. • Advantages
  • 3. OVER VIEW • Cucumber is a high level testing Framework which supports behavior driven development. o It runs automated acceptance testing on web applications. o It execute plain-text functional description as automated tests. o It understand Gherkin Language.
  • 4. AUTOMATED TESTING • 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.
  • 7. HOW IT WORKS • Cucumber reads the code written in plain English text (Language Gherkin) in the feature file. • It finds the exact match of each step in the step definition (a code file). • The piece of code to be executed can be different software frameworks like Selenium, Ruby on Rails, etc.
  • 8. ENVIRONMENT It has no specific setup but it give different libraries which can be used through • Java • Eclipse • Cucumber supports over a dozen different software platforms like − • Ruby on Rails • Selenium • Pico Container • Spring Framework • Watir
  • 9. GHERKIN • Cucumber executes the test scripts, which have been defined in the feature file. • The language, in which this executable feature files is written, is known as Gherkin. • Gherkin is a plain English text language. • which helps the tool Cucumber • to interpret • execute the test scripts.
  • 10. GHERKIN • Gherkin provides the common set of keywords in English text. • It can be used by people amongst the different community and yet get the same output in the form of test scripts
  • 11. FEATURE • A Feature can be defined as a standalone unit or functionality of a project. • Few basic features can be determined as − • Create and remove the user from the social networking site. • User login functionality for the social networking site. • Sharing photos or videos on the social networking site. • Sending a friend request. • Logout. A feature usually contains a list of scenarios to be tested for that feature. •
  • 12. FEATURE FILE • A simple feature file consists of the following keywords/parts − • Feature − Name of the feature under test. • Description (optional) − Describe about feature under test. • Scenario − What is the test scenario. • Given − Prerequisite before the test steps get executed. • When − Specific condition which should match in order to execute the next step. • Then − What should happen if the condition mentioned in WHEN is satisfied
  • 13. SCENARIO • Scenario is one of the core Gherkin structures • Every scenario starts with the keyword “Scenario:” • Each feature can have one or more scenarios. • Every scenario consists of one or more steps. • One feature more scenario more steps A very simple example of scenario can be • Scenario − Verify Help Functionality.
  • 16. ADVANTAGES OF CUCUMBER OVER OTHER TOOLS • Supports different languages like Java.net and Ruby. • Acts as a bridge between the business and technical language. • It allows the test script to be written without knowledge of any code. • It allows the involvement of non-programmers as well.