Selenium with Cucumber 7.x - Java BDD Framework - Mini Project | Crash Course

Sdílet
Vložit
  • čas přidán 27. 03. 2023
  • Selenium with Cucumber 7.x - Java BDD Framework - Mini Project | Crash Course
    Tools/Tech used:
    1. Cucumber - Java Lib / Selenium 4.x
    2. JDK 1.8
    3. Maven
    4. Cucumber-TestNG
    5. Cucumber, Gherkin BDD Plugins in IntelliJ
    6. IntelliJ - IDE
    7. Gherkin
    8. Feature Files
    Schedule a meeting in case of any queries/guidance/counselling:
    calendly.com/naveenautomation...
    ~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
    czcams.com/users/Naveen%20Au...
    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/9FrG-KzGlvxjNmQ1
    Naveen AutomationLabs Paid Courses:
    GIT Hub Course:
    naveenautomationlabs.com/gitc...
    Java & Selenium:
    naveenautomationlabs.com/sele...
    Java & API +POSTMAN + RestAssured + HttpClient:
    naveenautomationlabs.com/manu...
  • Věda a technologie

Komentáře • 94

  • @naveenautomationlabs
    @naveenautomationlabs  Před rokem +16

    Git Repo URL: github.com/naveenanimation20/Cucumber7.xTestNGLatestPOC

  • @Rehana1238
    @Rehana1238 Před 10 měsíci +1

    Hitting like and posting the comment before even completly going through...that confidence it gives by this channel, thanks a ton naveen

  • @RobinsonMartinezEngineer

    Thank you Naveen, excellent resume to refresh some concepts and very helpful new hints!

  • @makkasbekar2701
    @makkasbekar2701 Před 2 měsíci +2

    Thank you Naveen. Crisp and to the point.! You are doing a great work by sharing this knowledge. 👍🏽

  • @shilpashravge5393
    @shilpashravge5393 Před rokem +2

    Great explanation as always. Thanks for all the efforts Naveen !

  • @santoshpr458
    @santoshpr458 Před 7 měsíci +1

    Thank you so much

  • @kritikakaushik2847
    @kritikakaushik2847 Před 5 měsíci +2

    thank you naveen you saved me ,i have created the framework for my project from the scratch from this ,its really helpfull,God bless you :)

  • @whitenoisefocus7962
    @whitenoisefocus7962 Před 11 měsíci +1

    Thank you Naveen. Pure 🔥as usual! 👊💥

  • @abdelaziznassif3845
    @abdelaziznassif3845 Před rokem +1

    Thanks a lot for this amazing project

  • @dan754513
    @dan754513 Před rokem

    you make the videos which are most important, m a fan now

  • @jeevanesh25
    @jeevanesh25 Před 2 měsíci

    Thank you so much naveen! And thanks for sharing GIT repo. ✨👍

  • @chinmayeehota4296
    @chinmayeehota4296 Před rokem

    Thanks Naveen. Much awaited

  • @rajalakshmiganesan8963
    @rajalakshmiganesan8963 Před 8 měsíci

    Thanks for the video. It's helped me to setup the cucumber selenium automation in my project. I have few queries:
    Actually I have put some assert statement in step definitions, when one assert statement fails, my script stops execution. I have tried soft assertion as well. Not sure how to use it in cucumber framework.could you please advise?

  • @ankitshukla5800
    @ankitshukla5800 Před 9 měsíci

    Thank you so much Naveen 🙏🙏
    Lots of doubt cleared
    Request you to please create one video with spring boot integration on this project

  • @SineQuaNon1
    @SineQuaNon1 Před rokem

    Thanks Naveen. Great video.

  • @tuktaantobloom
    @tuktaantobloom Před rokem

    Really helpful
    Great bhaiya J!i!!
    Thank you so much❤🥰🙌

  • @bhushanchincholkar7413
    @bhushanchincholkar7413 Před rokem +5

    Please make one video on Smoke testing in existing automation scenario

  • @shailweb07
    @shailweb07 Před rokem +1

    Amazing stuff . So easy way to create the bdd cucumber project using Java .
    Thanks Naveen for this crash course .❤❤❤

    • @Raviteja_Maskani
      @Raviteja_Maskani Před rokem +1

      is it working if we create same project using eclipse?

    • @naveenautomationlabs
      @naveenautomationlabs  Před rokem +1

      @@Raviteja_Maskani yes you can clone this project and import the same in Eclipse.

  • @vikramrao4252
    @vikramrao4252 Před 9 měsíci

    Hi Naveen
    Thank you for the video
    I got 2 questions:
    1) this is already asked above - how can we control the threads of parallel execution if I have more then 30 scenarios in all the feature files
    2) can we instilase the chrome webdriver in a until Java class and extend that in the pages
    To avoid creating constructor in every page
    Is this good idea

  • @matiasveron3007
    @matiasveron3007 Před rokem

    thx Naveen, where you add wait for element? o use only wait implicit?

  • @PradipYogi59
    @PradipYogi59 Před rokem +1

    Awesomeeeee

  • @rifattaque7301
    @rifattaque7301 Před rokem

    Thank you Naveen. Please make one crash course on mobile testing with appium and java

  • @leonidvr6455
    @leonidvr6455 Před 4 měsíci

    Hi, when you with 5 threads.Do all scenarios run in 5 browsers? What the level of the parallels?

  • @oscarh6651
    @oscarh6651 Před 8 měsíci

    Thank you Naveen, but where is the chrome driver ?

  • @ramyabaskaran8859
    @ramyabaskaran8859 Před rokem

    Thank you❤

  • @Sunils_Creations
    @Sunils_Creations Před rokem +1

    thanks Naveen its a g8 video , i liked that runner vs testng,xml vs parallel execution explanation

  • @blazefroste5626
    @blazefroste5626 Před rokem +1

    Is there a way to achieve Cross brower parallel exeution with this?

  • @gettricksin
    @gettricksin Před 2 měsíci

    @naveen where we have setup the chromedriver , it been a long day i haven't work with selenium can you please explain me

  • @leonidvr6455
    @leonidvr6455 Před 4 měsíci

    Can I use paraneters in TestNG xnl for the case ?

  • @sureshisoft4555
    @sureshisoft4555 Před rokem +1

    Excellent video Naveen. Please Post similar video for Rest Assured framework from scratch also

    • @rajeevramnathan7036
      @rajeevramnathan7036 Před rokem

      Hi Suresh, Note that latest versions of TestNG and Rest Assured in Maven repositories are having vulnerabilities. You will need to decide accordingly.

  • @sushilsingh422
    @sushilsingh422 Před 2 měsíci

    ctrl + click in feature file steps does not navigate to step def in eclipse. Is there any specific plugin for it ?

  • @vinaychowdri8740
    @vinaychowdri8740 Před rokem

    If we run the script multiple times report should not overwrite, how to implement in cucumber @Naveen pls help me with that

  • @sherinjoseph4277
    @sherinjoseph4277 Před 11 měsíci

    Hi Naveen, Thank you for the explanation. With this I have developed a framework. Can you please help me with the error, cucmberException: Failed to instantiate stepdefintions.loginPageStep. Not able to proceed because of the error.

  • @anujashah5466
    @anujashah5466 Před rokem +1

    Hi Naveen. One question. Is there any specific formate to give method name in stepdef java class or I can write anything ? Like you mentioned public void "i_click_on_the_login_button" in LoginPageStepDef?

    • @naveenautomationlabs
      @naveenautomationlabs  Před rokem

      yes in any format you can write. There is compulsion to write method name like : "i_click_on_the_login_button"

  • @25222jimmy
    @25222jimmy Před rokem

    hello @naveen can u plz make videos on serenity with restassured and appium

  • @mohammedmafaz5538
    @mohammedmafaz5538 Před 9 měsíci

    Hi Naveen,
    Can you send IntelliJ - IDE version
    Thanks

  • @sdongardiye
    @sdongardiye Před 10 měsíci

    @Naveen Sir , How we can pass the test case Id and update the test result in Rally

  • @Nexquan
    @Nexquan Před rokem

    Running OS Win10 I ran into issue using JDK 8, but works fine using JDK 11.

  • @umamaheswari4267
    @umamaheswari4267 Před 9 měsíci

    Hi Naveen...i face the issue in controlling the thread count. Consider there are more than 20 feature files, and in testng.xml, thread count is configured as 5, but on running, it is still running all 20 feature files at once, could u suggest me, how to resolve it

    • @maheswarikalipili7072
      @maheswarikalipili7072 Před 8 měsíci

      Hi @umamaheswari4267,I'm also facing the same. Were you able to control the thread count for execution?

  • @rakeshjogula4913
    @rakeshjogula4913 Před rokem +2

    Hi Naveen , it was a good informative video . one question regarding cucumber reports uploaded to cloud . is it safe to use that if we are having sensitive information like credentials in feature file ? Can we disable report uploading to cloud ?

  • @svksuman
    @svksuman Před rokem

    Thank a bunch... But you could have cover windows also 😢as most of the people are not afford for apple Mac Naveen...

  • @ashraysrivastav
    @ashraysrivastav Před rokem

    Hi naveen,
    Which cucumber version should i use with Jdk 18 as it is throwing error when executed with latest cucumber version ..
    Plz suggest

  • @tanushrimukherjee2762

    Even though I created the stepdefs i still get error as undefined step defs. Unable to proceed

  • @SamiFilmmaking
    @SamiFilmmaking Před 2 měsíci

    not able to execute in parallel, getting no feature files available

  • @thatokgopa9449
    @thatokgopa9449 Před 9 měsíci

    Awesome video Naveen, how did you resolve that @Override redline, I cant seem to solve it or at least see how you did.

    • @Aj21093
      @Aj21093 Před 9 měsíci

      Change method name from scenario to scenarios

  • @rajithamachharla2037
    @rajithamachharla2037 Před 6 měsíci

    I've followed the same process, but driver is not picking the page objects locator methods, how to solve it?

  • @hashimjaved4463
    @hashimjaved4463 Před rokem

    I keep getting Symbol not found in TestRunner Class.
    Cannot resolve symbol 'testng' , Cannot resolve symbol 'junit'.
    Can anyone help ?
    Tried restarting and invalidate cache but no luck.

  • @vaibhooo
    @vaibhooo Před 2 měsíci

    The import cucumber cannot be resolved Getting this error

  • @zarinashaikh1053
    @zarinashaikh1053 Před rokem +1

    Hi Naveen, I am getting the below compilation error when I implemented the code. Even though I copied the same code from your repo but still has the same exception. Can you please help me solve this?
    "....../src/test/java/runner/TestRunner.java:[5,30] cannot access org.testng.annotations.DataProvider
    bad class file: C:\Users\Zarina\.m2
    epository\org\testng\testng\7.7.1\testng-7.7.1.jar(org/testng/annotations/DataProvider.class)
    class file has the wrong version 55.0, should be 52.0"

    • @sayantan033
      @sayantan033 Před rokem +4

      The error message indicates that TestNG-7.7.1.jar contains a class file (org.testng.annotations.DataProvider) that was compiled with Java version 11 (version 55.0), but the Java compiler that you are using is version 8 (version 52.0).
      To resolve this issue, you have two options:
      Upgrade your Java version to Java 11 or later. This will allow you to compile and run your code with the latest version of TestNG.
      Downgrade your TestNG version to a version that is compatible with the Java version you are using. For example, you could downgrade to TestNG-6.14.3, which was compiled with Java version 8 (version 52.0).
      Once you have made the necessary changes, rebuild your project and try running your tests again.

    • @bhabanishankarparida7864
      @bhabanishankarparida7864 Před rokem

      @@sayantan033 same issued I faced ,thanks for his suggestion. its saved my time

    • @sysybaba420
      @sysybaba420 Před 9 měsíci

      @@sayantan033 That helped me as well! Thanks!!!

  • @naveenautomationlabs
    @naveenautomationlabs  Před 5 měsíci +1

    Latest Cucumber 7.x - Java BDD Framework - Mini Project | Crash Course
    Tools/Tech used:
    1. Cucumber - Java Lib / Selenium 4.x
    2. JDK 1.8
    3. Maven
    4. Cucumber-TestNG
    5. Cucumber, Gherkin BDD Plugins in IntelliJ
    6. IntelliJ - IDE
    7. Gherkin
    8. Feature Files

  • @user-jj6hq2xm3m
    @user-jj6hq2xm3m Před 5 měsíci

    Why you use Maven Archetype quick start every time while creating Maven Project. Pls explain the logic behind same @naveenautomationlabs

    • @CuteWorld614
      @CuteWorld614 Před 5 měsíci

      I think it have inbuilt features in maven

  • @sysybaba420
    @sysybaba420 Před 9 měsíci

    @naveen, how did you get rid of the error on @Override at 37:09?

    • @Aj21093
      @Aj21093 Před 9 měsíci +2

      change function name from scenario to scenarios

    • @sysybaba420
      @sysybaba420 Před 9 měsíci

      Good catch! Thanks

    • @HOPE98901
      @HOPE98901 Před 3 měsíci

      @@Aj21093 Thanks

    • @HOPE98901
      @HOPE98901 Před 3 měsíci

      @@sysybaba420 thanks for asking this question

  • @peacelilly2200
    @peacelilly2200 Před rokem

    Hello, I am new to cucumber. Is it true, we can have max 10 scenarios is a feature file ? I tried it, but was able to create more than 10 scenarios in a feature file. Am, I doing something wrong, or my understanding is incorrect? Can somebody please help me to clear the doubt?

    • @galineelima4914
      @galineelima4914 Před rokem

      You can create N number of scenarios in feature file ...there is no limit .

  • @kavitajadhav8077
    @kavitajadhav8077 Před měsícem

    can we do same project using Eclipse

  • @fadlymahendra
    @fadlymahendra Před 3 měsíci

    I got this error: Step undefined
    You can implement this step and 3 other step(s) using the snippet(s) below:

  • @naveenautomationlabs
    @naveenautomationlabs  Před rokem +1

    Latest Cucumber 7.x - Java BDD Framework - Mini Project | Crash Course
    Tech Stack:
    1. Cucumber 7.x - Java Lib
    2. JDK 1.8
    3. Maven Build tool
    4. Cucumber-TestNG for test runner and parallel execution
    5. Cucumber, Gherkin BDD Plugins in IntelliJ for writing gherkin based feature file and mapping with step definitions
    6. IntelliJ - IDE
    7. Gherkin language
    8. Feature Files

    • @dineshbabu8472
      @dineshbabu8472 Před rokem

      Wonderful explanation as always👌 could you please share some example for junit5 instead of testng in this scenario..

  • @sweetthirty2
    @sweetthirty2 Před 10 měsíci

    How to avoid hard coding data in feature file???

  • @user-ef1og4lj2l
    @user-ef1og4lj2l Před 7 měsíci

    Hi Naveen, in the previous framework series, you have also used various files such as - hooks.java, config.properties, driverfactory.java, configreader.java,etc. which are not used in this video. Can you plz shed light on whether we should follow that approach or not? Thanks for all your amazing videos

    • @naveenautomationlabs
      @naveenautomationlabs  Před 7 měsíci

      This is just a crash course video on bdd not the full series.

    • @RoyceElland
      @RoyceElland Před 7 měsíci

      @@naveenautomationlabs can we use those hooks driver factory and configreader to this testng runner?

  • @DevanshMahindrakar
    @DevanshMahindrakar Před 7 měsíci

    where is testng & its concepts used in the code?????? Annotations, Grouping, Priority, etc

  • @ashishmishra2167
    @ashishmishra2167 Před 5 měsíci

    Hi Naveen, first of all thanks for this amazing crash course but I have a big doubt over here regarding Hooks. I was expecting this doubt would be clear in this tutorial but wasn't that lucky.
    Right now you have used Hooks annotations in one of your step definition class file[LoginPageStepDef.java] where you are initializing the driver and the same driver is then passed to Login Page Object.
    Now if i create a Hooks class inside stepdefs package and put @Before and @After using methods in this class, How will the initialized driver value be passed to [LoginPageStepDef.java] as we cannot inherit Hooks.
    So can you please tell me how to handle this. How to pass the same driver instance intialized in Hooks to other StepDefinition class files.
    Thanks a lot for your wonderfull work and commitment

  • @abhishekchauhan1970
    @abhishekchauhan1970 Před 11 měsíci

    Can you please upload a video explaining the integration of allure reports with cucumber7 and junit5. Please include screenshot on failure as well as the folder structure and bundling this with jenkins.

  • @SatishvelkumarNadar963

    What is fix protocol used in testing field can you explain it?

  • @critiqeamazing9688
    @critiqeamazing9688 Před rokem

    [RemoteTestNG] detected TestNG version 7.7.1
    log4j:WARN No appenders could be found for logger (org.testng.TestNG).
    log4j:WARN Please initialize the log4j system properly.
    How to fix this?