Share

How to create a Selenium, Cucumber Automation project in Eclipse ?

Author: neptune | 19th-Apr-2022 | views: 36
#Selenium #Testing #Cucumber

Problem Statement : Let’s consider this particular project where we will try automating the process of booking a flight ticket. 

Let’s get started and see how it’s done using Selenium.

First divide the process into the various steps to understand working in brief of a project.

Steps in brief:

  1. We’ll start with initialising the browser driver and then log in to the web page

  2. Find the flight according to the user requirements

  3. Select a flight and book it

  4. Capture a screenshot of the confirmation page

Now let’s have a look at the steps involved in the creation of this project.


Step 1: Create a Workspace


Step 2: Create a Maven Project in the above workspace

Go to File-> Go to New-> Others -> Maven Project to create a new Maven Project.




Step 2: Add the dependencies to pom.xml file

Now add the dependencies to pom.xml file



Step 3: Create the packages

Create the packages under the src/main/java folder and the src/test/java folder and start writing the piece of code.



Step 4: Setup the TestRunner class


Step 5: Create features in SpiceJet.feature

Now create a feature in SpiceJet.feature file.


Step 6: Create features in SpiceJetStepDefs.java

In  SpiceJetStepDefs.java create the step definitions as per your features that you created in SpiceJet.feature.


That’s how we create a Maven Cucumber Project in Eclipse.


Thanks for Reading !!! 

If you have any questions let me know in the comment section.






Related Blogs
Automate Ticket Booking in SpiceJet from Delhi to Bengaluru using Selenium and Cucumber.
Author: neptune | 17th-May-2022 | views: 2046
#Selenium #Cucumber
We are going to automate a ticket booking using Selenium WebDriver and Cucumber BDD...
Selenium, Cucumber, JUnit, TestNG dependencies for Selenium project.
Author: neptune | 15th-Apr-2022 | views: 734
#Selenium #Testing #Cucumber #Projects
We guide you how to update the pom.xml file for Selenium Maven project...
Top 10 Selenium Interview Questions with answers (2021).
Author: neptune | 23rd-Feb-2022 | views: 564
#Selenium
In this article I will cover top 10 Selenium interview questions...
Top 50+ Selenium Automation Interviews Questions 2022 based on years of Experience
Author: neptune | 15th-Apr-2022 | views: 390
#Selenium #Testing #Interview
Every interview difficulty is based on how many years of experience you have in that field. For the Selenium Automation Tester I have divided the question on the number of years of experience...
Mostly asked Cucumber interview questions in selenium automation interviews.
Author: neptune | 22nd-Feb-2022 | views: 373
#Selenium #Testing #Cucumber
We are going to explore widely asked Cucumber interview questions in selenium automation interviews...
How to use wait commands in Selenium WebDriver in Java ?
Author: neptune | 22nd-Feb-2022 | views: 302
#Selenium #Testing #Java
We are going to explore different types of waits in Selenium WebDriver. Implicit wait, Explicit wait, and Fluent wait with examples...
Different types of software testing ?
Author: neptune | 23rd-Apr-2022 | views: 244
#Testing #IT
Testing is the process to improve the performance of software. Examples: Unit, Integration, Regression, Smoke, Alpha, Beta, System, Stress Performance, Object-Oriented Testing etc...
Getting started with Selenium WebDriver.
Author: neptune | 15th-Apr-2022 | views: 163
#Selenium #Testing
In this blog I will give you an overview of Selenium WebDriver and Also discuss about advantages and disadvantages of Selenium WebDriver...
Top 10 Selenium Interview Questions.
Author: neptune | 16th-May-2022 | views: 28
#Selenium #Interview
Locator is a command that tells Selenium IDE which GUI elements (like Text Box, Buttons, Check Boxes etc) we are going to use or perform some automation task...
How to create Selenium Cucumber Project in Eclipse.
Author: neptune | 17th-May-2022 | views: 28
#Selenium #Cucumber
First, divide the process into the various steps to understand working in brief of a project. Steps in brief: We’ll start with initializing the browser driver and then log in to the web page...
View More