Selenium Cucumber BDD Framework with Java and TestNG - Login Test

preview_player
Показать описание
And also analyze Html/JSON/XML reports at the end of the test execution.

#bddevelopment framework: Behavior Driven Development is a software development approach that allows the tester/business analyst to create test cases in simple text language (English). The simple language used in the scenarios helps even non-technical team members to understand what is going on in the software project.

#cucumber #integration with #selenium :

Cucumber can be integrated with Selenium, a popular web testing framework, to create an efficient and maintainable automated testing solution. Here's how you can use the Cucumber BDD framework in conjunction with Selenium:

Setup Environment:

Install Java Development Kit (JDK) and set up the environment variables.
Set up your preferred Integrated Development Environment (IDE), like Eclipse or IntelliJ.

Create a #Maven #Project:

Create a new Maven project in your chosen IDE. Maven helps manage dependencies and project structure.
Add Dependencies:

#CreateFeatureFiles:

Create feature files with scenarios in Gherkin syntax. These files will define the behavior you want to test.
Write #StepDefinitions:

Create step definition files for the steps in your feature files. These step definitions should map Gherkin steps to actual Selenium automation code.
Implement the methods that perform actions using Selenium WebDriver, such as clicking buttons, filling forms, navigating pages, etc.
#GlueCode

Cucumber relies on a "glue" layer to connect feature files with step definitions. Configure the location of your step definition files in the test runner.
#RunTests #TestRunner

Execute your tests by running the test runner class.
Cucumber will read the #featurefiles , match steps to #stepdefinitions, and execute the corresponding #Seleniumautomationcode

Reference URL(s):

Playlists in this channel:

I hope you have liked the explanation and learned from this video. 🙏 Please share my videos and subscribe to my channel 🔔 , also help your friends in learning the best by suggesting this channel.
Рекомендации по теме
Комментарии
Автор

It is step by step and very much understandable.Many thanks for your efforts onto this. Please upload full series on cucumber with POM. Thanks again!

testingx
Автор

Thanks bro it was wonderful. Understood everything and successfully run everything..👏👏👏👏

dkgaming
Автор

Very Nice Explanation Thank you sir...

v.shanmugamg.venkatachelam
Автор

Very nice Lab with easy to understand Cucumber BDD Login along with it, very good

kusum
Автор

It's really helpful thank you so much🙌

muskansayyad-dipx
Автор

Step by step explanation. Thank you for posting it.

TestingUnlimited
Автор

Well explained sir ..plz upload more vedio for cucumber

riyashukla
Автор

Thank you for step by step explanation of adding dependencies, i have resolved exception error which am facing due to incrt dependencies

nikhithamadishetti
Автор

very much understandable sir happy to watch and easy getting all those things make full version of on this topic then it will help us bit more for feature .thank you

praveenalgudkar
Автор

Step by step good explanation. For writing test scenarios and feature, please suggest any documents.

DailyDoseofEntertainment-le
Автор

When integrating Cucumber with the TestNG framework, do you not lose the annotations and other capabilities of TestNG? Because you can just create this framework using JUnit instead of TestNG. Or am I missing something? Please feel free to educate me. Great video as always :).

sahil
Автор

Hi @Raghav, I would like to learn this course. But, I got confused with the set up for this Environment in Eclipse. Do you have any information regarding, which jar files we need to import, maven dependencies, and anything else. Could you please share the information regarding my doubt.

PhaniPavanKumarChelluboina
Автор

Cucumber runner class wont work for 7.8.0 onwards dependencies, So for running the test cases with runner class use TestNG 7.7.1 dependency only

snehalmetkar
Автор

Sir, why did we extend AbstractTestNGCucumberTests in runner class? Do we need to extend this to integrate testNG with cucumber? Normally we install testng from eclipse market place and add testng dependency rite?

TaraStar-zt
Автор

which java version you are using here?
and please update me what is latest java version supported by cucumber??

prabhakarmishra
Автор

I am making automation tests for a spring boot project using selenium cucumber. Do i have to put any new configurations?

AsadSaeed-ynnh
Автор

Hello teacher, can I test using a website where I have the source code available? (and how to do it). Because using the url link often causes errors, I hope you will answer!

TranTran-oqit
Автор

I can use this framework for API testing as well?Please explain how it will be very helpful thanks.

rachaitabasu
Автор

But we need to create feature file under src/test/Java not resource

shaheenafirdous
Автор

Jun 15, 2024 6:50:54 PM cucumber.api.cli.Main run
WARNING: You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Displaying this error when running the feature file. Please help me sir

ArjunK