#4 - Cucumber Feature File mapping with Step Definition - Important Tips

preview_player
Показать описание
#CucumberBDD #BDD #NaveenAutomationLabs

In this video, I have explained how to map feature file steps with step definition methods in step definition class.

Learn:
How to convert to Cucumber project
Install updated Eclipse Cucumber project
Mapping between feature file steps and step definition methods

Get the latest Eclipse Plugin Url:

Steps to add Eclipse cucumber plugin:
From Eclipse, go to menu Help then select Install New software
Select the check-box for Cucumber Eclipse Plugin
Select Next as per the instruction shown during installation.
Restart your Eclipse after completion of instruction.
Now latest version of cucumber-eclipse plugin is installed successfully in your Eclipse

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:

Рекомендации по теме
Комментарии
Автор

Get the latest Eclipse Plugin Url:

Steps to add Eclipse cucumber plugin:
From Eclipse, go to menu Help then select Install New software
Select the check-box for Cucumber Eclipse Plugin
Select Next as per the instruction shown during installation.
Restart your Eclipse after completion of instruction.
Now latest version of cucumber-eclipse plugin is installed successfully in your Eclipse

naveenautomationlabs
Автор

This channel is really underrated. Should be recognized more. 😇

shiprasharma
Автор

Thank you so much Naveen for your videos. Your videos are crisp, to the point, covers all the information. We can study more in a lesser time because you don't beat around the bush. I am a fan

socialmedia
Автор

Thank u sir... Much waited for cucumber series...

subhashreesahoo
Автор

great man. you are always there with a solution video. Thanks again and again My Automation Guru.

pravinjadhav
Автор

@Naveen Sir : As per the video, the cucumber version mentioned in the pom is 6.9.0, When I did with the same config I am getting other dependency erros. When I downgraded the version to 4.8.0, it worked fine. Could you tell me the possible reason. I have clean build the project, restarted the eclipse as well.

rakshit_jain
Автор

Thanks for this tip @Naveen. Great video.

ankitmahajan
Автор

Thanks a million! this video was exactly what i was looking for!

sanjanas
Автор

Hi Naveen,
It's wonderful. Crystal clear explaination.

I have followed the similar steps mentioned in the video. But, in the feature file, (*.feature), i dont see any auto generated script file. I am using below configurations






Eclipse version :

ashwinvavilala
Автор

Hi Naveen,
i am facing following issues

1. Am using windows 10 and eclipse IDE version 2020-09
Following your video i created a feature file and its step definition file
Andi can only execute the feature file by right clicking on the feature page ->RunAs -> cucmber feature
But i cannot execute the feature file by right clicking on feature file name ->RunAs -> cucmber feature in the explorer

2. AutoNavigation from feature file to stepDefinition file is not happening for few when i try to perform using ctrl+mouse hover and click
i checked with naming and even spaces everything is looking same in both the files "feature" "stepDefinition"

3.And also getting this warning in feature file
Multiple markers at this line
- The resource is a duplicate of and was not copied to the output folder
- 8 changed lines
And i created this resource source folder based on the lecture and i dont know where it is referring for duplicate.

Solution from peers also highly appreciable
Thanks in advance

rottlife
Автор

Hi sir,
What is the solution for regeneration step definition? Step Definition is generated when I run the feature file for the first time. The step definition is generated when i run the Java class again after implementation in the Java class.Result : (you can implement the missing steps with the snippet given below:
1) with scenarios (1 undefined)
3 steps (1 omitted, 2 undefined) while step definition has already been generated and implemented.

PradeepKumar-lnkx
Автор

If the feature file is not showing colours or steps as link .. Go to your feature file right click -open with Editors- it will work most properly 👍🏻

dharapatel
Автор

Hello Naveen, Is this possible to add multiple annotation in one step definition. I have two scenarios where in one scenario same step can be used with Then and another is with And annotation. So I should write two steps definition for each with duplicate code(which i will not prefer to do) . Could you please highlight on this?

satyaguddu
Автор

Hi Naveen
Thank you and really appreciate your efforts. I have quick question: In my project we are using step definition file. I am new to this API automation as well as Karate framework. How do i know from where integrating methods. We are using IntelliJ IDE. Java is pgm language.

sushmareddy
Автор

Amazing tutorial. You are jus wow Naveen.

supriyassampath
Автор

Hi Naveen, I am getting no glue code warning for the feature files. I have defined the step definitions and also installed latest cucumber plugin. I tried uninstalling and reinstalling the plugin still no luck. Could you please suggest some solution.

akankshasikri
Автор

@naveenautomationlabs if we want to get the data from properties file instead of feature file examples how we can achieve it??

chethankumar
Автор

Do we have any way to run Steps in Sequential order? For example we first 1 feature file and execute the 2nd feature file which has steps mapped in different class only after 1st feature file is executed

raj
Автор

Sir i have followed same evnthough after copy pasting step defn mehods, yellow color underline below feature file lines. And that cucumber green symbol not came on feaure folder, iam consuded wer iam doing wrong pls tell me.

bhagyashreek
Автор

hi.. Can you please tell me which Screen recorder is using on your laptop for recoding audio and video purpose ?

brcodingskills