
Discover Cucumber BDD concepts with Gherkin feature files and executable given-when-then steps, and implement end-to-end tests in Java with Selenium, Maven, Serenity, JUnit, and a page object model.
Create a cucumber maven project in Eclipse using a maven quickstart, set group and artifact IDs, and add cucumber junit, cucumber java, and cucumber picocontainer dependencies for JDK 17.
Install the cucumber Eclipse plugin at the Eclipse level via the marketplace, accept the license, handle the unsigned content warning, and restart Eclipse to enable cucumber across projects.
Create a cucumber feature file structure by adding a features folder and an EBay_Home.feature file with a .feature extension, using gherkin scenarios to define behavior.
Write your first gherkin scenario in a feature file using given, when, and then steps. Discover five keywords—feature, scenario, given, when, then—and how concrete requirements guide bdd development.
Create Cucumber step definitions from gherkin by running the feature file to generate snippets, and implement the eBay home steps for a future test runner with JUnit and Cucumber.
Set up a cucumber test runner using JUnit and cucumber options to run all features with step definitions in the steps package.
Explore cucumber options features, glue, and plugin in a maven project, showing where features and steps live, how the test runner uses them, and generating html, json, or junit reports.
Explore the dryRun option in Cucumber, which searches for scenarios and steps without step definitions, without executing code, identifies snippets, and shows when to use true or false.
Enforce strict option in Cucumber BDD to require step definitions for all scenarios across all feature files, making the JUnit report fail when any scenario lacks a step definition.
Explore the monochrome option to adjust how test output appears in the console; enabling monochrome makes the display cleaner and more readable by omitting execution time.
Learn how Cucumber tags group scenarios, use tag prefixes and names to run only selected scenarios, and control test execution.
Discover how the name option in Cucumber BDD filters scenarios by keywords in the scenario name, enabling targeted test execution with illustrative examples.
Integrate cucumber with selenium using a pom.xml project, set up chrome driver, and implement step definitions to navigate pages, click links, and validate URLs with junit assertions.
Practice cucumber bdd by creating gherkin scenarios and step definitions, using Selenium and Java to automate eBay advanced search, verify navigation, and validate result counts.
Discover global hooks in cucumber and how before and after hooks manage chrome driver setup and teardown, reducing repetition by sharing a driver through common steps.
Learn to parameterize Cucumber scenarios by passing string and integer values, replacing hard-coded data in step definitions with flexible parameters.
master the step data table concept in cucumber bdd by learning how to pass multiple values through a data table, write gherkin scenarios, and create corresponding step definitions.
Learn to drive a data-driven gherkin scenario using a scenario outline and examples data table, executing multiple tests that validate eBay link navigation, url, and title contents.
Learn how to use scenario-specific hooks with tags in Cucumber, manage global before/after hooks, and control execution order, including cases like setting cookies.
Explore how to prioritize Cucumber hooks with order values, distinguishing between global and scenario-specific hooks, including multi-file setups and before/after execution order.
Explore cucumber tags and how the test runner groups and runs scenarios, using and/or to control execution and categorize tests by smoke, sanity, regression, or custom names.
Understand global before hooks and global after hooks that run before and after every gherkin scenario across all feature files, with setup and teardown placed in a common steps file.
Summarize cucumber bdd concepts from basics to automation framework design. Prepare to build a maven-based page object model with page factory using gherkins, step definitions, and data tables.
Learn to implement a page factory and build an elements repository to centralize web elements for each page in a Selenium-based Cucumber BDD framework.
Implement a page factory by creating dedicated actions pages for eBay home and advanced search, moving step definitions into page methods and using a driver and elements factory.
Create a common actions page to centralize navigation, current url, and page title, using a shared driver from common steps and preparing actions for step definitions for cucumber bdd automation.
Implement a page object model by replacing direct web driver actions with reusable action methods from action classes, integrated via constructors in step definitions and common actions.
Download and customize the Cucumber with JUnit and Selenium framework, add feature files, step definitions, and page element and action files; practice and ask questions via the provided GitHub link.
Learn to integrate the Masterthought cucumber reporting plugin with Maven, converting cucumber.json to rich html reports and charts. Configure dependencies and run as a mvn build to generate insights.
Capture failed step screenshots by using an after hook that checks the scenario status, takes a Selenium png, and embeds it into the Cucumber and MasterThought reports.
Conclude your Cucumber BDD journey by obtaining Udemy and Dezlearn certifications, register for the online multiple-choice test, score above 70% to earn the Cucumber BDD automation tester certificate.
Note: To enable captions, click on 'CC' at bottom right hand corner of the video player and select 'English'.
This course provides in depth coverage on Cucumber BDD. So, you can learn Cucumber Coding From Basics to Advanced Levels.
Overall course outline:
What is Behavior Driven Development (BDD)?
Concept of TDD vs BDD
Cucumber with Junit and Selenium WebDriver
Learn Cucumber Coding through practical examples on live website
Cucumber setup
How to Create Cucumber Features?
How to write Cucumber Gherkin Scenarios?
How to write Cucumber Step Definition Files?
Parameterization in Cucumber
Cucumber Data Tables
Cucumber Hooks
Cucumber Data Tables
Cucumber Framework Design with Page Object Model and Page Factory
I believe in hands-on exercise oriented teaching. So, you won’t find any PPTs during the sessions. But, you will find dozens of real time scenarios used to elaborate Cucumber BDD concepts.
Feel free to post your questions/feedback in the comments block provided under each session-video. I will make sure all of your queries are addressed.
‘Course Curriculum’ section below will give you an idea about the depth and the overall coverage of this course. If you want to learn any other Cucumber BDD concept - which is not already covered in this course - then feel free to let me know via Udemy messenger.
This course is designed for you if you are:
a QE Automation Engineer OR
a Selenium WebDriver automation aspirant OR
a manual testing professional willing to jump start your automation carrier OR
a QTP/UFT professional wanting to learn a high demand skill OR
a QE Manager exploring better automation solutions for your project OR
a fresh grad looking to learn a quick new skill which has high demand in the job market OR
aspiring to learn coding and automation
Training program requirements/prerequisites:
Basic knowledge of Java and Selenium is required for performing hands of exercises explained in course videos
Participants need to have a Windows 10 PC OR a MacBook with 8 GB (or more) memory
JDK 10 and Eclipse IDE installation
To get the maximum benefit from the course, please take a look at following steps explaining 'How to take this course?'
Step 1: Schedule 30-45 minutes of your time daily for 5 days a week. 'Continuity' is the key.
Step 2: All sessions are divided in small videos of less than 20 minutes. Watch 2-3 videos daily.
Step 3: Hands-on exercise is very important. So, immediately try out the programs discussed in the session. Try them on your own. You can download these programs from lecture resources.
Step 4: Assignments with answer keys are provided where-ever necessary. Complete the assignments before jumping on to the next sessions.
Step 5: If you come across any questions or issues, please feel free to contact me and I will make sure that your queries are resolved.
Wish you all a very happy learning.
Note: All the course videos are in Full HD. For the best video streaming quality, please adjust the resolution from 'settings' at bottom right-hand corner of video player. Choose 1080p or 720p as per your network speed.