BDD using Cucumber
Presented By:
Shazeb Khan
Rachit Saxena
BDD
Core Principles
• It’s a behavior everyone involved should have the same way of thinking about the
system and what it does.
• BDD describes the behavior of your software in a very understandable way.
About Cucumber
• Cucumber is a software testing tool which adopts the Behavior Driven
Development (BDD) approach of application testing.
• It allows automation of functional validation in easily readable and
understandable format (like plain English) to Business Analysts, Developers,
Testers, etc.
• Incorporated with Selenium Webdriver, Cucumber can be used to run automated
test cases on frameworks like Junit, Testng etc.
About Cucumber
Jars Required
• selenium-server
• cucumber-junit
• cucumber-java
• cucumber-jvm
• junit
Create a Feature File
Step Definition
• Reusable
• Cucumber gives you copy & paste code
a. Copy & paste code given by Cucumber
b. You just need to define each method
Step Definition Class - Example
Here’s your cucumber sandwich for patiently listening
THANKS!

[@NaukriEngineering] BDD implementation using Cucumber

  • 1.
    BDD using Cucumber PresentedBy: Shazeb Khan Rachit Saxena
  • 2.
  • 3.
    Core Principles • It’sa behavior everyone involved should have the same way of thinking about the system and what it does. • BDD describes the behavior of your software in a very understandable way.
  • 4.
    About Cucumber • Cucumberis a software testing tool which adopts the Behavior Driven Development (BDD) approach of application testing. • It allows automation of functional validation in easily readable and understandable format (like plain English) to Business Analysts, Developers, Testers, etc. • Incorporated with Selenium Webdriver, Cucumber can be used to run automated test cases on frameworks like Junit, Testng etc.
  • 6.
  • 11.
    Jars Required • selenium-server •cucumber-junit • cucumber-java • cucumber-jvm • junit
  • 12.
  • 13.
    Step Definition • Reusable •Cucumber gives you copy & paste code
  • 14.
    a. Copy &paste code given by Cucumber b. You just need to define each method Step Definition Class - Example
  • 15.
    Here’s your cucumbersandwich for patiently listening THANKS!