No video

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

#CucumberBDD #BDD #NaveenAutomationLabs
In this video, I have explained how to map feature file steps with step definition methods in step definition class.
Full Cucumber 6 latest 2020 videos - playlist: • Cucumber BDD Framework...
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:
github.com/cuc...
Steps to add Eclipse cucumber plugin:
From Eclipse, go to menu Help then select Install New software
Work with: cucumber.githu...
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:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Paid courses (Recorded) videos:
naveenautomati...
For Java & Selenium - naveenautomatio...
For API (Manual + Automation) - naveenautomatio...

Пікірлер: 82

  • @naveenautomationlabs
    @naveenautomationlabs3 жыл бұрын

    Get the latest Eclipse Plugin Url: github.com/cucumber/cucumber-eclipse-update-site-snapshot Steps to add Eclipse cucumber plugin: From Eclipse, go to menu Help then select Install New software Work with: cucumber.github.io/cucumber-eclipse-update-site-snapshot 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

  • @ashuiet

    @ashuiet

    3 жыл бұрын

    in my eclipse it is showing already installed while I put the this url "cucumber.github.io/cucumber-eclipse-update-site-snapshot". I have restarted the eclipse but issue still intact.

  • @shiprasharma3345
    @shiprasharma33453 жыл бұрын

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

  • @naveenautomationlabs

    @naveenautomationlabs

    3 жыл бұрын

    Thanks Shipra.

  • @arunsuri8568

    @arunsuri8568

    3 жыл бұрын

    he is one of the best we have.

  • @shiprasharma3345

    @shiprasharma3345

    3 жыл бұрын

    @@arunsuri8568Agreed!!

  • @dharapatel4439
    @dharapatel44393 жыл бұрын

    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 👍🏻

  • @sachinkumbar3203

    @sachinkumbar3203

    2 жыл бұрын

    tnx dude its solved my feature to stepfile navigation issue

  • @socialmedia434
    @socialmedia4343 жыл бұрын

    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

  • @friendonymous
    @friendonymous2 жыл бұрын

    0:06 happy diwali🤣🤣 sssssssss...

  • @subhashreesahoo2233
    @subhashreesahoo22333 жыл бұрын

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

  • @pravinjadhav9749
    @pravinjadhav97492 жыл бұрын

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

  • @raj006
    @raj0062 ай бұрын

    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

  • @chethankumar6100
    @chethankumar61002 ай бұрын

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

  • @rakshit2509_jain
    @rakshit2509_jain3 жыл бұрын

    @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.

  • @fazilahmmad7928
    @fazilahmmad79289 ай бұрын

    Unable to navigate to step definition from feature file...Right click navigate option not working. Tried converting project to Cucumber, still issue

  • @gautammanda086
    @gautammanda0862 ай бұрын

    Hi naveen Is there a way where we manage feature file externally from jira rather than writing feature file again

  • @ankitmahajan8295
    @ankitmahajan82953 жыл бұрын

    Thanks for this tip @Naveen. Great video.

  • @rottlife8815
    @rottlife88153 жыл бұрын

    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 src/test/resources/features/uber.feature 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

  • @rohith91947
    @rohith919475 ай бұрын

    What plugin should I download if I am using intellij community edition

  • @ashwinvavilala6950
    @ashwinvavilala69503 жыл бұрын

    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 UTF-8 1.8 4.13.2 6.10.0 3.8.1 2.22.2 Eclipse version : eclipse-java-2020-12-R-win32-x86_64

  • @PradeepKumar-ln6kx
    @PradeepKumar-ln6kx3 жыл бұрын

    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.

  • @satyaguddu508
    @satyaguddu5083 жыл бұрын

    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?

  • @akankshasikri7634
    @akankshasikri76343 жыл бұрын

    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.

  • @Chaitra.Shetty
    @Chaitra.Shetty Жыл бұрын

    I have created a runner class. @CucumberOptions - CucumberOptions cannot be resolved to a type.How can i resolve this error?

  • @qatestingresearcher2248
    @qatestingresearcher22483 жыл бұрын

    Hi Naveen, Thank you for the video, code seems to successful but the only issue is on ctrl +hovering the feature file is not getting higlighted(. Kindly note the plugin is the latest and even the project is converted(I can see green icons also).

  • @devashreevijay3334
    @devashreevijay33342 жыл бұрын

    Your videos are good. but contents are not visible. Please show by zooming in.

  • @ssrinivasulu1368
    @ssrinivasulu13683 жыл бұрын

    I am using IntelliJ, 1. any suggestions how to convert the project to Cucumber Project in IntelliJ? 2. Currently i am facing below error while running the Runner file: io.cucumber.junit.UndefinedStepException: The step "User provides an "Id"" is undefined. You can implement it using the snippet(s) below: NOTE: I am able to run the feature file without any errors.

  • @vr.amita2007

    @vr.amita2007

    3 жыл бұрын

    Me to getting same errors

  • @sanjanas6311
    @sanjanas63113 жыл бұрын

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

  • @naveenautomationlabs

    @naveenautomationlabs

    3 жыл бұрын

    Glad it helped!

  • @sushmareddy5829
    @sushmareddy5829 Жыл бұрын

    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.

  • @DevashishMathur-bv1ht
    @DevashishMathur-bv1ht Жыл бұрын

    Hey Naveen, Cucumber options has been depreciated now, cab you please show how to create new Test Runner class using Junit Platform Engine?

  • @yadhu5113
    @yadhu51133 жыл бұрын

    Naveen, can you post the video regarding, how to handling multiple stepdefinition page in BDD. There no any clear video in youtube which make us understand.

  • @hemangishelake9849
    @hemangishelake98493 жыл бұрын

    Hi Naveen, After updating cucumber as you suggested my existing cucumber turned into plain editor. Unable to run feature files now.Please help me

  • @Beyond_The_Lines
    @Beyond_The_Lines Жыл бұрын

    in my case some of the gherkin key are showing yellow flag while other dont why

  • @hiteshgupta375
    @hiteshgupta375 Жыл бұрын

    Your videos are really helpful and gives brief info on any feature ... was having one doubt on the same topic i.e. how to extract feature file name from .feature file to step definition class ?

  • @brcodingskills845
    @brcodingskills8453 жыл бұрын

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

  • @anushasai5955
    @anushasai59553 жыл бұрын

    HI Naveen I have installed new software and tried to configure as cucumber project but still i am seeing warning as does not have matching glue code. Could you please suggest me how to remove the warning in the feature file.

  • @supriyassampath1419
    @supriyassampath14193 жыл бұрын

    Amazing tutorial. You are jus wow Naveen.

  • @chirag6283
    @chirag62833 жыл бұрын

    Hi Naveen, I am getting a "No Definition Found" warning message in the feature file even though I have added all the Feature File Statement in Step Definition. Can you please help me?

  • @archanaarchu2698
    @archanaarchu26983 жыл бұрын

    Hi Naveen, I was able to install new plugin followed by converting to cucumber project as well. In feature file I was able to see green color dots eventhough I was not able to move from feature file to step definition since it's not highlighting the step as link (ctr mouse over - windows machine - Eclipse). Can you suggest me how to overcome this.

  • @sachinkumbar3203

    @sachinkumbar3203

    2 жыл бұрын

    rightclick on featurefile - Openwith-Editor

  • @parthasaradhi7766
    @parthasaradhi77662 жыл бұрын

    Hi @naveen Hi really good video But i'm getting initialization error while running the test runner file.... Its telling that "Method 'initialization error' not found.Opening the test class"

  • @yashuy3279
    @yashuy32792 жыл бұрын

    Thank You, Sir !

  • @sanaa8571
    @sanaa85712 жыл бұрын

    Hi Sir, Can please make the video on the JBhave with maven

  • @bharatgoklani275
    @bharatgoklani2753 жыл бұрын

    How can i have 2 separate step definition files with 1 feature file ? My requirement is that for the same feature file I need to have 2 separate step definition file (one for component test and one for integration test).

  • @prakashkodalkar2225
    @prakashkodalkar2225 Жыл бұрын

    Great explain 👍👍👍

  • @dikshagupta9371
    @dikshagupta93712 жыл бұрын

    Hi Naveen sir, is there any plugin which help to merge to junit XML file

  • @Kamal-vd1zg
    @Kamal-vd1zg3 жыл бұрын

    Naveen you life saver

  • @ahmettemel8245
    @ahmettemel82452 жыл бұрын

    thank you

  • @vishalchopra2518
    @vishalchopra25183 жыл бұрын

    Thanks Naveen

  • @AbhishekKumar-jn7vl
    @AbhishekKumar-jn7vl3 жыл бұрын

    we can directly run Runner class which shall automatically find the missing step defs ..

  • @giovanniguerreiro8640
    @giovanniguerreiro86402 жыл бұрын

    Fantastic like always!

  • @nayanamr2447
    @nayanamr24473 жыл бұрын

    Hi Naveen, I have created a Feature file and step defination file. I rechecked the step defination file method name against feature file they both are same. Still, Getting warning message in feature file saying the glue code is not defined. Note: I have updated project as cucumber project and also moved the feature file to src/test/resources folder. And also, restarted the eclipse as well. I am not sure, What is missing here? Please suggest.

  • @shashankgupta3682

    @shashankgupta3682

    3 жыл бұрын

    Download the cucumber eclipse plugin again. Restart the eclipse. And then convert your project to cucumber.

  • @nayanamr2447

    @nayanamr2447

    3 жыл бұрын

    @@shashankgupta3682 - It worked. Thank You

  • @anuranmondal5077
    @anuranmondal50772 жыл бұрын

    Why and is getting mapped to then over here?

  • @shitalbelokar9499
    @shitalbelokar94993 жыл бұрын

    Thanks sir for great video but could you please make a video on how to run multiple features file using runner class.

  • @karunakaranh5572
    @karunakaranh55723 жыл бұрын

    I am writing 3 scenarios in 3 different feature files and step definition files. The first 2 steps are the same in all 3 scenarios. will it work or will show some error here?? Anyone please suggest me here

  • @Harpreetkaur-bk4pq
    @Harpreetkaur-bk4pq3 жыл бұрын

    Hi Naveen, How can we run two feature file one after another? I have created two feature file- one is for login and second one is of clicking on any menu items after login.

  • @PankajSareen7

    @PankajSareen7

    3 жыл бұрын

    I think testRunner class should be able to pick that up since we are mentioning the feature path under cucumber options?

  • @shradhaingewar6168
    @shradhaingewar61683 жыл бұрын

    Hi Naveen, I have created the same feature file, but the run configuration generated step definitions only for last 3 lines, and when I created step definition file with those 3 steps, the code was running successfully without any warning for missing glue code of Given And When situation. Can you please help me with this situation.

  • @shradhaingewar6168

    @shradhaingewar6168

    3 жыл бұрын

    Got it, Syntax error.

  • @101czar
    @101czar3 жыл бұрын

    im running a feature file as "Run as configuration" i have not defined any steps instead of flagging for undefined steps, its running with no output, test success what could be reason that undefined steps are not coming up ?

  • @janani1930

    @janani1930

    2 жыл бұрын

    Same thing somebody help

  • @mallikarjunareddyva6319
    @mallikarjunareddyva63193 жыл бұрын

    Hi Naveen is it possible to map one feature step Definition into another feature Step?

  • @manishthakur6866
    @manishthakur68662 жыл бұрын

    Hi naveen i have built the same project as you teach also copied your pom But i am getting test class not found in project error I have tried by changing path in class file still i am getting same issue. Please provide the solution i am bit frusted due the issue please help sir

  • @parthasaradhi7766

    @parthasaradhi7766

    2 жыл бұрын

    im also getting same issue bro. did u got any resolution for that

  • @ashuiet
    @ashuiet3 жыл бұрын

    Hi Naveen, I have install the plugin converted the project in Cucumber Step Definition are getting passed but for FEATURE file "warning" still showing (! yellow Color). Restarted the eclipse also. Can you suggest how to overcome from this issue

  • @ashuiet

    @ashuiet

    3 жыл бұрын

    @Arun Kumar Pandey if you found any solution then let me know

  • @naveenautomationlabs

    @naveenautomationlabs

    3 жыл бұрын

    Did you download the new cucumber eclipse plugin? And plz go to project- configure- convert to cucumber project.

  • @naveenautomationlabs

    @naveenautomationlabs

    3 жыл бұрын

    Good :)

  • @shivamtiwari5544
    @shivamtiwari55443 жыл бұрын

    can we run two feature files run from one test runner like both feature files mapped to different step def and we have to run both the feature one by one , can we do this

  • @shivamtiwari5544

    @shivamtiwari5544

    3 жыл бұрын

    please reply have to get on something urgent business logic sir

  • @TheIndubabu
    @TheIndubabu3 жыл бұрын

    Hello All, please see if u could help me with this 1. I wrote ABC.feature 2. And defined step definitions for ABC.feature in ABCSteps.java 3. Eclipse or editor doesnt detect the step definition and throws an error “no step definition found” 4. If I copy the methods in ABCSteps.java to any other XYZSteps.java file. The steps are detected and able to navigate from feature file To add: I can see .class files created for ABCSteps.java No idea what am I missing.. Please please help me 🙏🏻🙏🏻🙏🏻

  • @omsonawane9101
    @omsonawane91016 ай бұрын

    Please Create BDD Cucumber Interview Question or provide the notes

  • @saveme2000
    @saveme20003 жыл бұрын

    Thanks for this is there a way I can reach you

  • @vishalkulkarni4184
    @vishalkulkarni41843 жыл бұрын

    Hi Naveen, i am trying to generate snippet from Feature file first time it generated snippet, after adding new feature file it is not executing and giving report. It is giving warning as You are using deprecated Main class. Please use io.cucumber.core.cli.Main. It is saying all scenarios passed but not giving step definition.

  • @johnige1166

    @johnige1166

    2 жыл бұрын

    Hello. I’m encountering the same problem. Have you been able to get a solution?

  • @muralikrishna4ever14
    @muralikrishna4ever143 жыл бұрын

    Clicking on your telegram link it says the link is expired

  • @Open-Media
    @Open-Media3 жыл бұрын

    My test is showing "steps undefined". The only difference between your code and my code is "import io.cucumber.java.en.Given". I do not know from where you got this import. I get error if I use this import. So I have used "import cucumber.api.java.en.Given"