
Explore behavior driven development with Cucumber and Java, linking requirements and automation using Selenium. The introduction covers Cucumber basics and building a Selenium Cucumber framework from scratch.
Understand Gherkin syntax in Cucumber and how behavior-driven development uses given, when, then scenarios to convert plain English business requirements into testable credit card payment flows.
Learn how to define cucumber scenarios and feature files, map each step to Java step definitions, and validate both positive and negative flows in a credit card payment flow.
Adjust playback speed from the video player's settings, starting at 1.2, and switch to 1.5, 1.25, or 0.75 to suit your learning pace.
Learn to download and install the JDK and configure Java system variables on Windows and Mac, including JAVA_HOME and PATH, then verify with java -version.
Set up eclipse for java automation by downloading the base package, unzipping it, and configuring the workspace. Launch the editor and create a new project for automation scripts.
Install the cucumber and testing plugins in eclipse, create a maven java project, add cucumber dependencies in pom.xml, and configure cucumber-jvm and cucumber-test to run feature files.
Explore cucumber basics: create feature files in gherkin, map given-when-then to Java step definitions, and run scenarios with JUnit or TestNG in selenium projects.
Shows generating and mapping cucumber step definition skeletons in a Java selenium project, resolving undefined steps, and wiring feature files, step definitions, and a Maven test runner for cucumber tests.
Reuse Cucumber step definitions across scenarios by parameterizing with dynamic credentials using regular expressions. Create generic login steps that work for admin and user, validating shared pages.
Parameterize Cucumber tests with a scenario outline and examples to run the same login scenario for multiple users, avoiding duplicate steps.
Explore how regex patterns in Cucumber step definitions let you accept any data type, using a generic (.*) and anchors that require a capital start and a trailing dollar.
Master data driven testing in Cucumber using feature files. Explore data tables, lists, and scenario outlines to drive signup form fields like first name, last name, email.
Learn how cucumber tags enable selective test execution by filtering scenarios with tags like smoke and regression, including and, or, not combinations in the test runner.
Learn how the background keyword in cucumber consolidates pre-requests, such as test data setup and launching the browser from config, before hitting the home page URL.
Learn how cucumber hooks replace background for scenario-specific setup and teardown using before and after annotations, with tag-based execution for net banking and mortgage flows.
Learn how to configure Cucumber reports from the test runner using plugins, generate HTML and JSON outputs, and use pretty for colored results, with dry run to verify step definitions.
Discover how to address common Cucumber framework problems by building a reusable, data-driven test flow with shared steps and background hooks, enabling parameterization and clear coverage reports.
Learn to build an end-to-end cucumber selenium framework from scratch with maven, cucumber and selenium dependencies, dependency injection, page object and factory designs, parallel data-driven testing, and reporting.
Create a maven project in Eclipse with a quickstart archetype, then add cucumber Java and selenium dependencies and a test engine, removing JUnit or TestNG conflicts.
Demonstrate automating a selenium cucumber framework scenario to search for a vegetable using three characters, verify consistent results on home and deals pages, and compare extracted product text.
Create cucumber step definitions, features, and a test runner skeleton for a Java Selenium framework; generate syntax skeletons from feature files, configure cucumber options, glue, and run with JUnit.
Master end-to-end Selenium with Cucumber by building step definitions, landing on the green page, and extracting the product name from the edit box before handling a new window.
Learn to handle child windows in Selenium with Java, Cucumber BDD, and the MasterClass Selenium framework by switching window handles and asserting product names match across pages.
Learn how to structure cucumber bdd with java and selenium by splitting step definitions into page-specific files to improve maintenance, avoid null pointer issues, and prepare for dependency injection.
Learn how to implement dependency injection in a cucumber framework using the pickle container, share context across step definitions with a test context setup, and resolve null pointer issues.
Apply the single responsibility principle and loosely coupled design to your Cucumber Java Selenium framework, using dependency injection to keep landing page and offer page steps modular and maintainable.
Learn to implement the page object pattern by creating one Java class per page, encapsulating locators and actions, sharing a single driver, and enhancing maintainability in test automation.
Demonstrate building a robust page object model for the offers and landing pages, wiring a driver through a constructor, encapsulating locators, and using dependency injection to manage objects.
Implement the factory design pattern to centralize creating page objects with a page object manager, injecting the driver and avoiding object creation in step definitions.
Build a centralized WebDriver manager and generic utilities, pass the driver via constructor from the context, and wire page objects with dependency injection for a streamlined cucumber java framework.
Create a global properties file under resources to drive browser and URL settings for Cucumber BDD with Java, enabling dynamic environment configuration without hard coding.
implement cucumber hooks with the after annotation to automatically close the browser after each scenario. inject the shared test context to access the driver via the web driver manager.
Learn to parameterize selenium tests with scenario outline in cucumber, iterate over multiple data sets using examples, and align step definitions accordingly.
Learn to run cucumber scenarios in parallel with TestNG by invoking the parent class's scenarios method, enabling parallel with a data provider, and executing two browsers simultaneously.
create a cucumber bdd checkout feature with selenium, covering search, add to cart, proceed to checkout, apply promo code, and place the order.
Implement assertions in step definitions for the new selenium feature file, using the constructor to initialize page objects and validating that the landing page title contains green card.
Tag cucumber BDD features and run all features files together in parallel mode using tag filters in the test runner, demonstrating parallel execution across multiple browsers.
Course last Updated on Jan 3rd with Latest Cucumber Version 7 Framework Videos.
Say Good bye in writing hell lot of the code to develop Automation Frameworks and welcome Cucumber BDD!
"Cucumber- A life saver tool for QA Industry in developing Test Frameworks with minimal programming knowledge..
This course helps you to build a top class BDD framework So that you can implement it for any Automation test cases developed in Selenium, Appium, Rest Assured API.
On course completion You will be Mastered in Selenium Cucumber BDD framework and can implement Successfully it in your work place for any automation test cases you have
This course is divided into 2 Parts.
In part 1 , You will get complete understanding of all Cucumber features and its framework functionalities which does not require any prerequisite. Below are the topics discussed in part 1
Understand Gherkin Syntax
Understand Cucumber Scenarios
Feature files & Step Definition files
cucumber Test Runner (Junit & TestNg)
Cucumber regular expressions
Cucumber tags & Background keyword
Cucumber Scenario outline for parameterization
Cucumber Datatables
Cucumber hooks
Tagged Hooks mechanism
Cucumber plugins
cucumber reports
Cucumber attributes
Cucumber Parallel execution
In Part 2- We will inject Selenium code and develop end to end Cucumber Selenium Framework from Scratch. Below are the topics
Build Maven Project with all the framework dependencies
Develop End to end Selenium Web Scenarios in the feature file
Implement TestNG /Junit Runner to run the framework
Understand the Single responsibility principle to distribute the implementation into multiple Step definitions.
Importance of Dependency injection to share the data between the Steps file
Understand the Page object Pattern to drive the locators from page files
Implement Factory Design pattern by writing PageObjectManager class to create objects of all PO classes
How driver can be configured and distributed across the files in the framework
How to run Cucumber Scenarios in Parallel Mode using Cucumber TestNG Runner
Build Test utilities for reusable Selenium methods
Implement Cucumber Hooks to capture Screenshots on test failures
Implement Cucumber Tags to run selected tests in the framework
Parameterizing the test data to run the Scenarios with multiple data sets
Creating HTML & Extent reports to run Cucumber Selenium tests
Running tests in parallel mode and generate Extent reports with screenshots attached for failed Scenarios
Run the cucumber tests using Maven & Command line options
Integrate the Framework to CI/CD Jenkins and Schedule the Jobs on regular time Interval
Create Parameterized Jenkin job to dynamically send the global properties at run time of Job execution
All the above topics are discussed from scratch level with lots of Practical examples for better understanding..
Wish you good Luck!