Data Driven Testing in Cucumber BDD Framework In Selenium - Part 3

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 97

  • @naveenautomationlabs
    @naveenautomationlabs  7 лет назад +10

    Hi All, Please update the latest Cucumber Dependencies before using Examples feature, get it from here:
    github.com/naveenanimation20/CucumberSeleniumFramework/blob/master/pom.xml

  • @suman3210
    @suman3210 6 лет назад +9

    I was scared to use cucumber. After watching this series of videos I got the confidence to use cucumber. Thanks a lot Naveen.

  • @pinchofswad6313
    @pinchofswad6313 4 года назад +4

    Thank you for uploading this treasure of Selenium/Cucumber on youtube. You have a great teaching technique and like the way how you go to the core to explain even simple things. I have to mention this, whenever I listen to your videos, I envision professor from Money Heist series lol. Keep up the good work and again Thank You for these valuable tutorials.

  • @gabrielmayta2297
    @gabrielmayta2297 5 лет назад +4

    Great explanation. I am in a project where I will work with Cucumber and Selenium. Your videos are very useful for me. Thanks.

  • @desertstar7664
    @desertstar7664 7 лет назад +1

    I can see why people are moving more towards BDD framework than TDD. Gr8 job Naveen !

  • @mahaveerthakur9864
    @mahaveerthakur9864 4 года назад

    I was confused how to use cucumber with selenium, your tutorials are giving very useful information. After watch your cucumber tutorials I can use cucumber without any doubt. Your automation videos are helping me to transform from Manual to Automation Tester.
    Thanks

  • @deepakkulkarni1469
    @deepakkulkarni1469 6 лет назад +2

    Thank you so much Naveen sir
    You are really good trainer and very good teacher I ever saw...
    Really thank you

  • @seshareddy7254
    @seshareddy7254 7 лет назад +3

    Nice and very clear explanations, Thank you so much Naveen

  • @anshikaagarwal9493
    @anshikaagarwal9493 3 года назад +1

    Thanks a lot naveen. Great teacher you are. Just bcoz of ur videos I am able to code.

  • @pradeepteja-te2em
    @pradeepteja-te2em 6 лет назад +1

    Very Nice explanation Naveen.You are doing a Great Job.God Bless u.

  • @harshalabobade2481
    @harshalabobade2481 4 года назад +2

    Hi Naveen,
    Thanks again for such a wonderful video! Just because of your earlier videos I followed for Se+TestNG+Maven I was able to script & successfully run Cucumber + Junit in less than 2 hrs for Facebook signup page without any difficulties. I cant thank you enough for the kind of detailed hands on experience I gained and already got an job offer in UK. I have one more interview tomorrow which is for Automation Architect which if I clear would be achievement in itself for me and all credits to YOU for such amazing automation videos!
    Best Regards!

  • @techwithwhitehat5203
    @techwithwhitehat5203 4 года назад

    naveen bro , your video is very helpful .I'm learning lot of stuff from your videos
    Thank You .

  • @aditisingh4669
    @aditisingh4669 6 лет назад +4

    Thanks for this Awesome tutorial.... I have a qstion/doubt here..
    >>> If the user keeps adding multiple contacts without logging out and logging in again for adding 2nd contact, how will the feature file looks like in that case???
    Thanks in advance

  • @rakeshsudhakar7925
    @rakeshsudhakar7925 6 лет назад

    Hi Naveen, Your are Explain all videos in simple manner, Nice

  • @sanjuk2484
    @sanjuk2484 3 года назад

    This is awesome vedio... Thank you naveen.. I am getting lot of confidence after watching this vedios... Thank you so much.. 😚😚

  • @akashpawar5692
    @akashpawar5692 3 года назад

    Thank you so much sir..... Bz of you I understand cucumber BDD framework...

  • @nirmalrawtani4961
    @nirmalrawtani4961 4 года назад +1

    Thanks a lot Naveen :) excellent video

  • @niranjansahoo5700
    @niranjansahoo5700 6 лет назад

    This is Nobel work by Naveen sir

  • @meenumangai5915
    @meenumangai5915 6 лет назад +1

    Really superb videos for understanding cucmber ,thank u so much

  • @rahulpatidar5285
    @rahulpatidar5285 7 лет назад +4

    Hi Naveen,
    How to deal with excel (read and write)sheet in BDD ? and what is imperative and declarative feature file ?

  • @Travelingcompass91
    @Travelingcompass91 7 лет назад

    Thank you so much, Naveen, so Nice and very clear explanations of data-driven testing in cucumber

  • @dheerajsingh6568
    @dheerajsingh6568 4 года назад

    Literally u r the best person in the world. The way u teach, the you explain. I become fan of you Naveen. And because of you I am "QA Automation Engineer". One thing is clicking me is what if we drive data from Excel ?? Can we integrate Apache POI in BDD also just like in TestNG ?? Please let me know

  • @villuri7
    @villuri7 6 лет назад

    Your effort is really appreciable. Thank you so much.

  • @azhargoundi8937
    @azhargoundi8937 5 лет назад +1

    Hi Naveen Thanks for your video great learning. In cucumber is it necessary to create page wise feature file ? If we create only one feature file then how login scenario steps gets called on next scenario steps. Or we have to repeat the login steps again.

  • @vishaltoyou
    @vishaltoyou 7 лет назад +1

    Hi Naveen for different modules can we create separate feature files or in one file only we can write.
    For separate feature files ,how we can write step definition and runner class file

  • @m9059
    @m9059 5 месяцев назад

    Hi Naveen instead of opening and closing the browser to write firstname lastname and position can we just take one login and perform 3 different data for forms?

  • @PriyankaShende-p6h
    @PriyankaShende-p6h 8 месяцев назад

    Thank you sir 🙂

  • @venkateshbonagiri9987
    @venkateshbonagiri9987 5 лет назад +2

    Excellent video Naveen. This is very helpful video for cucumber beginners.
    Just one query that, how do we reuse the code.
    For example: i would like to create a one login method which can be called in different tests .i.e in other feature and stepdefinition files.

    • @manish89arya
      @manish89arya 5 лет назад

      i didn't try this but probably you could work.. say you have Login.java, Home.java (page objects class) and you have 1 method loginWithPassword() . you can call this method in your home stepdefinition file in a method with @Before annotation (cucumber annotation)

  • @mayankjain9941
    @mayankjain9941 4 года назад

    Thanks for this awesome tutorial. I have a question/doubt here.
    >>> If the user keeps adding multiple contacts without logging out and logging in again for adding 2nd contact, how will the feature file look like in that case???
    Thanks in advance!!!

  • @pritamkumarroutray8925
    @pritamkumarroutray8925 7 лет назад +3

    Hi Naveen,
    while giving the with examples keyword, I am getting error in the login feature file. when I parameterize the Then user enters "" and "". When I try to run the runner class by providing the dryrun as true, I am getting a initialization error. Please help.

    • @naveenautomationlabs
      @naveenautomationlabs  7 лет назад

      +Pritam Routray plz update your dependencies with the latest versions. Refer the latest pom.xml file in my GIT REPO.

    • @pritamkumarroutray8925
      @pritamkumarroutray8925 7 лет назад

      Thanks Naveen it's working now. I watched your both the videos 1st and 2nd of Cucumber framework and followed it and all was working fine. But while watching your 3rd and latest video I had to update the pom.xml where as it no where mentioned in your 3rd video.

    • @pritamkumarroutray8925
      @pritamkumarroutray8925 7 лет назад

      Naveen can you please share your email id please. I wanted to discuss some stuff regarding selenium. Please share.

    • @pritamkumarroutray8925
      @pritamkumarroutray8925 7 лет назад

      Naveen,
      Why the format in the TestRunner class has been stroked out?

  • @manjulaganachari
    @manjulaganachari 4 года назад

    Hi Naveen Thank You , the videos are really very helpful to understand the concepts clearly..I had a question on test estimates being provided for the automation projects. When they ask in the interview on how do you provide the estimates when any requirement or Jira is for testing ?

  • @bhushansingh1101
    @bhushansingh1101 4 года назад

    Thanks very useful 👍

  • @shorya81
    @shorya81 7 лет назад +2

    same script i have written for this scenario..but somehow this frame "mainpane1" is not getting highlighted unable to mouseover on "Contacts"

    • @Lalee-s1i
      @Lalee-s1i 6 лет назад

      same problem is with me where IDE says can not locate ID or name 'mainpanel'.. Please some one help with this

  • @AyeshaMahammed
    @AyeshaMahammed 5 лет назад

    Where all can the tags be used? Can they be used before Feature keyword in the feature file? Or do they have to be used only before the scenario/scenario outline?

  • @surajbobade956
    @surajbobade956 4 года назад

    Why you not created second StepDef file as created the second feature file for contact form?

  • @RayeedWorld
    @RayeedWorld 5 лет назад +1

    What happened to the freeCRM site? It doesn't allow me to login.

  • @anirbandas2062
    @anirbandas2062 4 года назад

    I keep getting an error when running the Runner file in this format:
    When("user logs in with the demouser and review123", () -> {
    // Write code here that turns the phrase above into concrete actions
    throw new io.cucumber.java8.PendingException();
    });
    Can you suggest how the console output can be updated the way you have shown ?

    • @anirbandas2062
      @anirbandas2062 4 года назад

      Here is my runner and Feature file.. Kindly suggest:
      @RunWith(Cucumber.class)
      @CucumberOptions(
      features= {"src/test/java/Feature/Demo.feature"},//the path for the feature file
      glue= {"stepdefinition"},//package name for stepdefinition
      plugin = {"pretty","html:test-output", "json:json_output/cucumber.json" , "junit:junit_xml/cucumber.xml"},//generate different types of reporting
      monochrome = true,//display in a proper readable format
      strict = true,
      dryRun = true//mapping is proper between feature and step definition
      )
      public class Runner {
      }
      Feature File:
      Feature: Validate Sales Demo IDs
      Scenario Outline: Ensure the Sales Demo IDs navigates to all pages
      Given the myCigna demo environment is launched
      When user logs in with the and
      Then validate that the user is logged in
      Examples:
      |username|password|
      |jpmctest1|cigna1|
      |demouser|review123|

  • @mohitgupta4394
    @mohitgupta4394 3 года назад +1

    Today the same interview question was asked.. I wish I could have seen this video earlier.. I am rushing for interview and referring videos In jumbled way to save time .. I know this shortcut would be a bad practice .. I will practice things.

  • @aishwaryabagade1625
    @aishwaryabagade1625 4 года назад

    Hi Naveen,
    If I create a seperate stepDefinition to add the new contacts, I will have to initialize the driver again. How do i tackle this ?? Do we need to create a base class here?

  • @RahulSharma-di4uh
    @RahulSharma-di4uh 6 лет назад

    Hi Naveen, I am new to cucumber and i am going through series of videos on Cucumber one by one. The videos are really very good and helpful.
    I am stuck at one point. For Data driven testing using Examples keyword and Scenario Outline, i am getting initialization error as "Method 'initializationError' not found. Opening the test class". To eliminate the error i have tried different combinations of Cucumber - Java, Junit and Core jars but not able to resolve the issue. Without examples and wi have to do to rectify the ith Scenario it is working fine. Could you please suggest what i have to do to rectify the error.

  • @nainsikumari6272
    @nainsikumari6272 5 лет назад

    Hi Naveen,
    I am trying to map but non of the feature steps getting mapped with step definition.unable to launch the browser even though same thing have written like VEDIO.
    Please help

  • @mohanprabu8153
    @mohanprabu8153 7 лет назад +2

    Hi Naveen
    Can you please add video for cucumber interview questions

  • @ramakrishnants7826
    @ramakrishnants7826 4 года назад

    Hi Naveen/All, the new freeCRM site has title as 'Cogmento CRM' before and after login. Please suggest some ways of doing assertions in this case. Like assertequals, is there any way we can check using contains as a keyword?

  • @imtiazahmed4500
    @imtiazahmed4500 6 лет назад

    Hi Naveen, Do you have plan to make videos on Docker ?

  • @suryamanikanta788
    @suryamanikanta788 5 лет назад

    Hii Naveen How to run particular Step Definition file ..i have problem in running a particular step definition file ..when i gave path of Step Definition file on Console shows Scenarios Skipped and Steps Skipped...

  • @ishankumarmodi2847
    @ishankumarmodi2847 5 лет назад

    Hi naveen
    Thanks for the video
    Just 1 question in parameterisation with examples keyword
    y u were entering login details everytime if we were already login, We should just add contacts one by one by using loop.
    If you change that thing here, it will increase confidence of the member.
    Thanks

  • @snehadutta2697
    @snehadutta2697 6 лет назад

    Hi Naveen, seems like format Option has been deprecated.Could you please let me know what is the option to use for reporting?

  • @eineinfachermann4092
    @eineinfachermann4092 4 года назад

    I had a problem with list report, it was not complete. Insert "stepNotifications=true" into CucumberOptions and the junit report show all steps.

  • @nitingunjan1625
    @nitingunjan1625 6 лет назад

    Hi naveen, you have updated login step definition file to cover test scripts for Contacts.
    If i will create new step definition file for Contact and adding all code in contacts file and then i want to run Login and Contact in one go .
    How we can do this in Cucumber. What i have to write in Runner class for running 2 test case in one go
    Test case 1: Login functionality
    Test case 2: Create Contact functionality

  • @pandajvn
    @pandajvn 6 лет назад

    Hi Naveen,
    Thank you for your video. I have a problem that create 100 test accounts through registration page. Should I use scenario outline to create them?

  • @vedant1637
    @vedant1637 4 года назад

    How can I get data from Excel file for the Cucumber BDD Framework? Is there any video?

  • @balachandran263
    @balachandran263 4 года назад

    Hi Naveen ,
    Awesome tutorial!! Can u also explain how to fetch data from Excel sheet in BDD framework..

  • @shabanakhanpathan8664
    @shabanakhanpathan8664 4 года назад

    Is "format" cucumber option is deprecated now ?Because when now im Working on the cucumber thrn im not getting format under the cucumber options.Please reply back..........

  • @newnawie7845
    @newnawie7845 4 года назад

    Hello sir, is it possible to pass values from excel to feature file instead of writing them in feature file itself

  • @satyamsharma2289
    @satyamsharma2289 4 года назад

    Hi all I am not able to use Examples keyword with scenario outline. initialization error I have tried all the maven dependencies still not able to find it.

  • @mohammeduneab8991
    @mohammeduneab8991 5 лет назад

    For few data's we can keep the data in examples...but how to manage the big data in real time ?...we will not use excel for data ?

  • @palakm7304
    @palakm7304 6 лет назад

    can we reuse Examples: to verify the name on homepage after we login in different scenario

  • @india_tour4563
    @india_tour4563 6 лет назад

    Hi Naveen, How to run multiple feature file with single runner file.

  • @rohitjadhav5817
    @rohitjadhav5817 7 месяцев назад

    Hi Sir, When we pass username and password in Examples using pipe this is clear to me but when we execute the test second username and password how is it wrong . We already define there | tom | test456 . then why it is going to failed

  • @madhurikadam2406
    @madhurikadam2406 5 лет назад

    hi,
    how to run all scenario in one browser, because for every login details opens new browser?

  • @kingmaker8768
    @kingmaker8768 3 года назад

    If frame is not available means......any alternate solutions is available.......how to move the mouse and click the link

  • @swetasharma5534
    @swetasharma5534 6 лет назад

    Good Job done Naveen, Very well explained. but pls let me know how to implement waits in BDD as I am not able to login with valid cred may be bcoz the other browser session is staring before completion of login in first. Correct me If I am wrong.

    • @swetasharma5534
      @swetasharma5534 6 лет назад

      Issue resolved, Stupid mistake :-P. However still want to know how to implement waits.

  • @Nmnm-bh8uw
    @Nmnm-bh8uw 5 лет назад

    did you discuss the tags or I missed?

  • @newnawie7845
    @newnawie7845 4 года назад

    Sir why for second record you are opening the browser again

  • @kalyanijoshi6884
    @kalyanijoshi6884 6 лет назад

    cucumber.runtime.CucumberException: Arity mismatch: Step Definition 'StepDefinition.LoginStepDefinition.title_of_page_is_FreeCRM(String,String) in file:/C:/CucumberProjectWorkspace/FreeCRM_BDDFramework/target/classes/' with pattern [^User enters "[^\"]*" and "[^\"]*"$] is declared with 2 parameters. However, the gherkin step has 0 arguments [].
    Step: Then User enters "test" and "123456" I am getting this error and the pom.xml is as seen in the github shared

  • @vibhakhandelwal2881
    @vibhakhandelwal2881 6 лет назад

    Hi Naveen, Please guide me how to run cucumber with multiple browsers.

  • @kavithakc7240
    @kavithakc7240 6 лет назад

    very helpful

  • @rajatmishra2689
    @rajatmishra2689 6 лет назад

    Hi Naveen, for me format tag in runner class is deprecated.

  • @niranjansahoo5700
    @niranjansahoo5700 6 лет назад

    Is there any shortcut to find duplicate step definition

  • @sdetworld5654
    @sdetworld5654 6 лет назад

    Thank u so much

  • @AbhishekRana-pd5xm
    @AbhishekRana-pd5xm 7 лет назад

    I am getting Failed to create scenario runner Cucumber exception, tried updating the dependencies but still I face this exception. Can anyone please let me know how to resolve it?
    nothing found in google for this error

    • @kishoretalatam376
      @kishoretalatam376 5 лет назад

      Hi
      Abhishek Rana, I am also facing the same problem while using examples keyword with scenario outline. Could you please help me if you resolved this issue. Thanks in advance!

    • @prettyLearn23
      @prettyLearn23 5 лет назад +1

      @@kishoretalatam376 try update the dependecy cucumber java and cucumber junit to 1.2.5 version

    • @kishoretalatam376
      @kishoretalatam376 5 лет назад

      @@prettyLearn23 thank you

    • @Parthipanx7
      @Parthipanx7 5 лет назад

      @@kishoretalatam376 am also facing same issue in Scenario outline implementation , could you please help me out. getting "" cucumber.runtime.RuntimeOptionsFactory.(Ljava/lang/Class;)V"" error

  • @rajeshrj6538
    @rajeshrj6538 6 лет назад

    excellent well briefed Tutorial! - great naveen

  • @13ahireshruti
    @13ahireshruti 4 года назад

    Hi Naveen, Free CRM website is getting redirected to freecrm.co.in/. Could you please verify once.Due to which code is getting failed.

  • @sahilkakkar7550
    @sahilkakkar7550 4 года назад

    freeCRM is not working now and your user name and password is also not working . PLEASE help me

  • @humisumi123
    @humisumi123 5 лет назад

    Has anyone encountered logging issues with Freecrm. Every time, I log in, I am taken back to the same page.

  • @shubhambhujbal-t4q
    @shubhambhujbal-t4q Год назад

    Free crm link is not working plz share me the link

  • @iftikharahmed1274
    @iftikharahmed1274 7 лет назад +1

    Part 1 n part 2 link

    • @naveenautomationlabs
      @naveenautomationlabs  7 лет назад

      here is the full playlist: ruclips.net/video/vHzMJuc9Zuk/видео.html