Selenium with Java | Create Junit Cucumber Project | BDD framework

Published: 31 May 2021
on channel: Maximum Automation
1,919
17

In this video we are going to see that how to create selenium automation project in java. We will create our new selenium project using maven.
We will use Junit test framework in our project. So that we can run our cucumber feature files.

To start with, go to the file menu and select new project. Then in new project window, expand Maven and select Maven project.
So we are going to create a maven based project which will handles our all dependencies.

Maven helps us to add dependencies in our framework, which will automatically be downloaded once we build our project. So if in future, you need to deploy your project to some other machine, in that case you don't need to download all required libraries manually. So the dependencies which we will add in pom.xml file, will do this job for us. all libraries will automatically be downloaded on those machines, whenever we build our project.

To run our project with Junit, we will add the attribute @RunWith at class level. When we provide this attribute then Junit invokes the specified class as a test runner. A test runner class is responsible to run JUnit tests.

Please comment in case of any query.


Also please watch my other videos as well.

Jenkins Integration :    • #1 Jenkins integration | Selenium fra...  

Add Java properties configuration file in framework - Selenium Java -    • Configuration file in automation fram...  

Parallel execution of cucumber scenario TestNG :    • Parallel Execution of Cucumber Scenar...  

Log4J2 - Logging in Java Framework :    • Log4J2 | Logging in Java framework | ...  

Selenium with Java - Create Junit Cucumber Project :    • Video  

Selenium - Debug/Run Script on Existing Browser :    • Selenium | Debug/Run Script on Existi...  

Selenium with Java - Extent Report - Part1 :    • Selenium with Java | Extent Report 5 ...  

Selenium - WebDriver Manager :    • Selenium | WebDriver Manager | Stop d...  

Parallel Execution - Cucumber - Junit :    • Parallel Execution | Cucumber | Junit  

Selenium with Java - Cucumber Html Report :    • Selenium with Java | Cucumber Html Re...  

Selenium with Java - Integrate TestNG with Cucumber -    • Video  

Selenium with C# - Klov Report :    • Selenium with C# | Klov Report Server  

Selenium with C# - Extent Report :    • Selenium with C# | Extent Report  

Selenium with C# - Create Project to automate test (Selenium + Specflow ) :    • Video  

Selenium with C# - Parallel Execution and Screenshot :    • Video  

Selenium with C# - All about feature files :    • Video  

Selenium with C# - Specflow - External Bindings :    • Selenium C# | Specflow | External Bin...  

Selenium with C# Working with Excel - Part 1 :    • Video  

Selenium C# - Visual Studio Code :    • Selenium C# | Visual Studio Code | No...  

Selenium Wait Commands | Implicit v/s Explicit Wait | What is Fluent wait | Static and Dynamic wait -    • Selenium Wait Commands | Implicit v/s...  


Watch video Selenium with Java | Create Junit Cucumber Project | BDD framework online without registration, duration hours minute second in high quality. This video was added by user Maximum Automation 31 May 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,919 once and liked it 17 people.