Selenium Cucumber Java BDD Framework 4 - Sample Login Test

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

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

  • @abrhaleymesfin
    @abrhaleymesfin 4 года назад +17

    This is the best channel to learn BDD and Selenium with Java. Thanks so much for the effort Mr. Raghav Pal

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

      You are most welcome Abrhaley

  • @leelamanjari122
    @leelamanjari122 Год назад

    Hello!! I’m grateful to have found your page. I followed every step as given in this video and added my own url to check for login functionality and at the end for the Then step definition I used a print statement saying the user is logged in successfully and it works!!! I also gave the locators by using selectors hub. It works amazingly. Thank you for taking the time to make these videos. They have been really helpful.

    • @RaghavPal
      @RaghavPal  Год назад

      Glad it was helpful Leela

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

    Your videos have made learning things easy. Very well explained and very easy to implement.

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

      Glad to hear that Sahil

  • @Ahmadsadiq21
    @Ahmadsadiq21 Год назад

    Lots of love and respect from an Afghan American. Salute to you Raghav sir.

    • @RaghavPal
      @RaghavPal  Год назад +1

      Thanks for the kind words Ahmad. Humbled

  • @rushdude87
    @rushdude87 3 года назад +10

    Great tutorial, I love the step by step approach from scratch. Thanks a lot!

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

      You're very welcome!

  • @rachanaarchushet1586
    @rachanaarchushet1586 6 месяцев назад

    Thanks a lot Raghav sir ! I dnt know how to thank you ! Your videos are very helpful !
    I have manual experience but I was struggling with automation learning. And your videos are life saviour 🎉❤

    • @RaghavPal
      @RaghavPal  6 месяцев назад

      Most welcome Rachana.. keep learning n do share your knowledge with others..

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

    Thanks for this video. Very nicely explained. Thanks again Raghav!!!

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

      Most welcome Mayank

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

    Better channel about automation.
    thank you very much for the teachings.

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

    The best tutorial i have ever seen

  • @kishorij1
    @kishorij1 2 года назад

    Very Nice explanation,Thank you Raghav Sir!

  • @rodrigorodriguezbarrera4418
    @rodrigorodriguezbarrera4418 Год назад

    Awesome my friend. Thank you very much for share knowledge.

    • @RaghavPal
      @RaghavPal  Год назад

      Thanks for watching Rodrigo

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

    Hello Raghav very well explained keep up Raghav

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

    Hi Raghav Sir, Thanks a lot for sharing this info/video with us... :-).

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

      My pleasure Madiraju

  • @trilokvooka7925
    @trilokvooka7925 2 года назад +1

    Hi Raghav,
    I have situation like need to use two step definition class files steps in one feature file, is it possible to use in cucumber?
    Example:
    1. I put one given statement in feature file 1 and it is mapped step definition class 1.
    2. Now, I need to re-use same given statement in feature file 2 with refer to step definition file 1 and when, and, then statements are referred to step definition class 2?,
    Currently, when I attempted it's giving error.
    Could you please let me know is it possible that way?
    If no, is there any other way to handle this situation?

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Trilok,
      Yes, it is possible to use multiple step definition class files in a single feature file in Cucumber. You can do this by using the glue option in the @CucumberOptions annotation, and specifying the package names of the step definition classes. For example:
      E.g.
      @CucumberOptions(glue = {"package1", "package2"})
      This will tell Cucumber to look for step definitions in both package1 and package2.
      Alternatively, you can use the Stepdefs annotation to specify the classes containing the step definitions.
      E.g.
      @Stepdefs
      class Steps1 {
      // step definitions
      }
      @Stepdefs
      class Steps2 {
      // step definitions
      }
      In this way, Cucumber will pick up the step definition methods from both class files

    • @trilokvooka7925
      @trilokvooka7925 2 года назад

      Thank you so much raghav for your time and patience ❤️

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

    Why do we have to add throws declaration after we add the Thread.sleep method in any function??

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

      Hi Sumithra, as per the definition of some functions, it is required to capture the exception, You can do that by either adding try and catch block or add throws declaration

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

      @@RaghavPal
      thanks Raghav for the explanation.

  • @ajinkyadhoke4713
    @ajinkyadhoke4713 2 года назад +1

    Top Notch Content ......♥

  • @davithkane1369
    @davithkane1369 2 года назад +2

    Another great class!!!

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

    Really helpful thanks for the clear explanation

  • @786Muhaimin
    @786Muhaimin 4 года назад +4

    Thanks a lot for creating this playlist!
    if you ever have the time would you make a video on how to debug in java?

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

      I will do Abdul, you can check exception handling video here - ruclips.net/video/iSdnc1BAThI/видео.html

  • @suganyavasudevan2261
    @suganyavasudevan2261 3 месяца назад

    Hi...without creating test runner class i try to run as cucumber feature but the unimplemented steps does not shows in the console window instead it shows an error sessionnotcreated. i already downloaded the updated chromedriver but it automatically takes the old chromedriver version. how can i handle this error?

    • @RaghavPal
      @RaghavPal  3 месяца назад

      Suganya
      Let's troubleshoot this:
      Unimplemented Steps
      Double-check glue code and feature file location
      Verify annotations if using a runner class
      SessionNotCreated Error
      Check Chrome version and download the exact matching ChromeDriver
      Replace the old ChromeDriver with the new one
      Optionally, set the system property to point to the new ChromeDriver
      Running without Test Runner
      Try creating a basic runner class temporarily
      Check your IDE's Cucumber configuration
      Additional Tips
      Clear project and rebuild
      Check dependencies
      Pay close attention to console output for more clues
      -

    • @suganyavasudevan2261
      @suganyavasudevan2261 3 месяца назад

      @@RaghavPal thanks for ur reply ..actually after creating the runner class the unimplemented steps are shown in the console...but only with the feature file sessionNotCreated error come. Because it takes the old version of chrome driver... i know if I declare the system. Property it will work but without this..I dont know how to change this..

    • @RaghavPal
      @RaghavPal  3 месяца назад

      check some online examples and try to follow

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

    Perfect. Thank you for your tutorials

  • @lailabernardon443
    @lailabernardon443 Год назад +1

    thanks by your clear explanations

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

    Hi Sir,
    Using the Cucumber ,I had created the feature file ,stepDefination and Testrunner classes.When the testrunner class is executed the print statements of stepDefination are getting printed on console.but in the Junit output console given,when,then & and steps/statements are not displayedAlso the link is not created to statements of feature file to stepdefinations

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

      Hi Pothukanuri, what does the logs say. Try to check again with the video and do the setup

  • @mscreative306
    @mscreative306 2 года назад +1

    Can you tell how to resolve this exception "java.net.SocketException"

    • @RaghavPal
      @RaghavPal  2 года назад

      will need to check the detailed logs

  • @suvasrik4294
    @suvasrik4294 Месяц назад +1

    Hi sir! I'm learning Software testing your videos are useful to learn cucumber I have an error like in code
    'driver.manage().timeouts().implicitlywait(40,TimeUnit.SECONDS);
    When I type this code the implicitlywait is been striked out automatically and the program is not running as properly can you please tell any alternative code !!!
    Thank you sir!

    • @RaghavPal
      @RaghavPal  Месяц назад

      Suvasri
      The `implicitlyWait()` method using `TimeUnit` is deprecated in Selenium. Here's the updated alternative:
      1. Use `Duration` from `java.time`:
      ```java
      driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(40));
      ```
      2. Update your Selenium version to the latest one if it's outdated.
      - You can check for updates in your build tool (e.g., Maven or Gradle).
      This change aligns with the newer Selenium versions (4.x and above)
      -

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

    how can I display the report nicly in cucumber graphic?

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

      Hi Haidar, you can use several tools for this, like extent reports, cucumber reporting, etc
      cucumber.io/docs/cucumber/reporting/

  • @andrewjonathan6162
    @andrewjonathan6162 9 месяцев назад

    Hi Raghav, I could not able to use test project as they discontinued their services long back. Is there are any alternative similar to testproject for testing the work just like you did for that login. I'm new to the world of testing and trying to figure it out. please help me out

    • @RaghavPal
      @RaghavPal  9 месяцев назад

      Andrew
      If you're looking for alternatives to TestProject for testing, there are several options available. Let's explore some popular ones:
      1. Selenium
      2. Playwright
      3. Cypress
      4. Katalon Studio
      5. Tricentis Testim
      6. Robot Framework
      7. Virtuoso
      8. Rapise
      Remember that each tool has its strengths and weaknesses, so choose the one that best fits your project requirements and your team's expertise.
      Happy testing

  • @nightstalker5097
    @nightstalker5097 2 года назад

    Hi, what actually is a test here you just click elements, how you will check if a user is navigated to that logged in URL that should be an actual test or what is proper navigation?

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi, we will add some checks and assertions or find some message or element on the home page, I may have added that in next videos

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

    Thank you for Teaching.

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

      You are very welcome

  • @akhtarkazi4085
    @akhtarkazi4085 Год назад

    after colon remove still not 0 scenrio, 0 steps(can u help how to fix)

    • @RaghavPal
      @RaghavPal  Год назад

      Will need more details. What are the steps you didn't if you have any logs or error messages

  • @nadamohammed9793
    @nadamohammed9793 Год назад

    Hello Raghav, first thank you for your helpful videos, but I forced an issue when trying to run testrunner, I didn't find "Run as Junit" option, could you please help me in that?

    • @RaghavPal
      @RaghavPal  Год назад

      Hi Nada
      The `Run as Junit` option is not available by default in Eclipse when you are using Selenium Cucumber. You need to add the Cucumber JUnit runner to your project in order to see the option.
      To do this, follow these steps:
      1. In Eclipse, right-click on your project and select **Properties**.
      2. In the **Properties** dialog box, select the **Run/Debug** tab.
      3. In the **JUnit** section, click on the **Add External JUnit Library** button.
      4. In the **Add External JUnit Library** dialog box, browse to the directory where the Cucumber JUnit runner is located. The default location of the Cucumber JUnit runner is `C:\Users\\.m2
      epository\io\cucumber\cucumber-junit\\cucumber-junit-.jar`.
      5. Click on the **Open** button.
      6. Click on the **Apply** button.
      7. Click on the **OK** button.
      Once you have added the Cucumber JUnit runner to your project, you should see the `Run as Junit` option in the context menu for your test runner class.
      Here are the steps in detail:
      1. Right-click on the `TestRunner` class in your project.
      2. Select the **Run as** option.
      3. Select the **JUnit Test** option.
      Your test runner should now run as a JUnit test.
      I hope this helps

  • @smiyrs7414
    @smiyrs7414 2 года назад

    Thanks you for your great videos

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

    Hi Raghav,
    I am getting an exception "no such element" in the login page when the control comes to 'Username' field. I tried WebDriver Wait (elementToBeClickable) and ran the test. This time I got the exception "timeout". I tried increasing the wait time. But, it doesn't work.
    Please help me on this.

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

      Hi Ishwarya
      Looks like the locator you are using is not able to find any object. Pls check the locators again and try changing
      Thanks,
      Raghav

  • @Swarnikalife018
    @Swarnikalife018 Год назад

    which version we can use for this selenium for this

    • @RaghavPal
      @RaghavPal  Год назад

      Hi Swarnanika, When I created this video, the latest was ver 3.x, You should be able to use any version 3.x. In case you like to use the latest ver, can try with that, there may be some changes you may have to do, I have a playlist for Selenium 4 too - automationstepbystep.com/

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

    do we need to create number of runner classes if many feature files are there???

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

      Hi Sonali, no, you can provide the feature files OR folder location in test runner file

  • @TheIT-cv6uy
    @TheIT-cv6uy Год назад

    Hi sir,
    Just a question
    Why are you writing same code in all stepdefinition to open the browser??
    1 step file is enough and all other step file can inherit right?

    • @RaghavPal
      @RaghavPal  Год назад

      Yes, can do that, Can check some online examples. This was just to begin with

    • @TheIT-cv6uy
      @TheIT-cv6uy Год назад

      @@RaghavPal thanks for the reply sir

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

    Sir, can you please explain the statement Webdriver driver=null; why did we write null there

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

      Hi Saikiran, so that we are just declaring the object driver but not initialising it to any value. This we can do later in the functions as shown

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

      @@RaghavPal
      Thanks for the reply sir..

  • @Bengaluru_IT_Life_with_baby
    @Bengaluru_IT_Life_with_baby Год назад

    why did you not create testRunner file ?

    • @RaghavPal
      @RaghavPal  Год назад

      I might have shown in upcoming videos Preeti, pls check

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

    Hello Raghav , can you please tell me what is this error
    "You are using deprecated Main class. Please use io.cucumber.core.cli.Main"
    and even if i provide the proper path in runnerTest why am i getting
    "main" java.lang.IllegalArgumentException

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

      Hi Upasana, have you updated the cucumber library ver in pom.xml
      Also check if you are using the correct library. Check this
      stackoverflow.com/questions/57177823/exception-in-thread-main-after-updating-cucumber-version

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

    Suggest me which tool is best for performance testing of a mobile social app and tutorials?

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

      Hi Muhammad, you can first check with JMeter.

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

      @@RaghavPalSir i have followed your tutorials of jmeter for web .
      But i have faced some issues like i cannot test of those page after the login page. Token pass issue

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

      @@RaghavPal and plz give me the link of helping material for jmeter for mobile app

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

      You can find in JMeter playlist here - automationstepbystep.com/

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

    Hi Raghav, Thanks again for this tutorial.
    I have setup Maven Project, with Cucumber, JUNIT and html reporting.
    Moving forward, I need to run the login test script every morning and if login fails, it should send email to the Developer.
    Do I have to set up Jenkins for that or TestNG will be enough for this?

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

      Hi Mushfiqua, I doubt if TestNG can do that for you, You will need Jenkins for some scheduling system

  • @kelvinspace9922
    @kelvinspace9922 2 года назад

    Hi Raghav, Do you have a video or documentation where you cover all the selenium webdriver Action elements code, Navigate to page, Accept alert, dismiss alert, verify elements ect...

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi, I have some videos, can check here - automationstepbystep.com/

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

    Is there any video of yours related to Debugging, selenium with c sharp using BDD framework

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

      Not yet on C sharp. Can find all here - automationstepbystep.com

  • @AmitKumar-pf9io
    @AmitKumar-pf9io 4 года назад

    Hello Raghav Sir, Is there a way if the chromedriver.exe is not available to us due to company privacy policy and still we are able to run explained test scenarios. Company policy does not allow to download any such driver of any of the browser. Please let me know if there is an alternative.

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

      Hi Amit, you can use webdriver manager, it takes care of the browser drivers internally - ruclips.net/video/8vWTgyoG0nc/видео.html
      However, behind the scene it also downloads the exe, so not sure if that will work for you. The best bet will be to ask your network team to get the exe file for you once and then you can continue

    • @AmitKumar-pf9io
      @AmitKumar-pf9io 4 года назад

      @@RaghavPal Thank you for inputs. Same issue, it does not allow it to download due to access restrictions.

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

      Hmm as I said, will need to take help from your networks team

    • @AmitKumar-pf9io
      @AmitKumar-pf9io 4 года назад +1

      @@RaghavPal Yes, I got chrome driver from network team. Ok one more question.
      Consider a scenario:
      Like I do not want to open browser and navigate to any site via ChromeDriver. This part I want to do manually on chrome. Now, based on the site which I have opened manually, I want to do some validations over there. Is this possible via framework which we are learning through your videos.
      Or is it mandatory to open browser page via ChromeDriver and then only able to proceed with further stuff.

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

      @@AmitKumar-pf9io Open Browser headless mode. Correct me Raghav if I said wrong Ans

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

    very well explained...

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

      Thank you so much Sonali

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

    Hi Raghav, Please make complete video tutorial available for cucumber.

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

    Nice session

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

      Thanks for watching Suchi

  • @monalia.kalyani648
    @monalia.kalyani648 2 года назад

    I am getting error for the step 1 browser open...

    • @RaghavPal
      @RaghavPal  2 года назад

      What is the error Monali, pls check the setup again

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

    very interesting keep going bro

  • @vidyajhegde1668
    @vidyajhegde1668 2 года назад

    I am getting as couldnot load main class.what i need to do

    • @RaghavPal
      @RaghavPal  2 года назад

      will need to check details

  • @chiragshelat5444
    @chiragshelat5444 3 года назад +2

    Thanks for this perfect tutorial. Why "implicitlyWait" appears with strikethrough in my code - driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS)? Can you please help?

    • @RaghavPal
      @RaghavPal  3 года назад +3

      Hi Chirag, if you are using latest selenium library you will need to say
      driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30));

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

      @@RaghavPal Thanks Raghav for your prompt response. This worked .

    • @rajatjasrotia4704
      @rajatjasrotia4704 2 года назад

      @@RaghavPal hi sir .
      Sir this is also not working .It is showing method has been deprecated

  • @kadourizakariae7174
    @kadourizakariae7174 2 года назад

    Hello I want to thank you for all your videos .
    I have one question can we check if the user can login or not in the last step by showing a valid message if the user connect successfullyor a message that contains that the the connection has failed.
    Thank you again.

    • @RaghavPal
      @RaghavPal  2 года назад

      Yes, we can do it Kadouri

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

    What's the difference between driver.close() and driver.quit() ?

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

      driver.close() closes the current browser window in focus whereas driver.quit() will close the whole browser session
      close() - Close the current window, quitting the browser if it's the last window currently open.
      quit() - Quits this driver, closing every associated window.
      seleniumhq.github.io/selenium/docs/api/java/
      References:
      artoftesting.com/automationTesting/difference-between-driver-close-and-driver-quit-command-in-selenium-webdriver.html
      stackoverflow.com/questions/15067107/difference-between-webdriver-dispose-close-and-quit
      www.quora.com/What-is-the-difference-between-close-and-quit

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

      @@RaghavPal Thanks Raghav for fast reply.

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

    Hi Raghav, How to reuse the same method for different feature file. Could you please explain that as well. Thanks!!!
    Example : Brwoser iss Oopen

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

      I will plan a session Ganeshan

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

      Thanks@@RaghavPal Looking forward to see the session number as 13

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

      Hi Raghav, any updates on my ask. Thanks in advance.

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

      @@RaghavPal I would love to watch it, did you have it? Also you comment you'd explain later how to run a particular definition for a particular feature file, would love to see that too! Very well done and helpful videos, thank you!

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

      @@RaghavPal Sorry for chasing this again. Do you got a chance to create a video with an example for the above question? It will help me a lot to avoid developing multiple methods which do the same work. Thanks!!!

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

    Hi Raghav, for Cucumber java BDD framework junit it the default, so if we use testng because of more feature we get, do you think this is good practice, or can you refer any tutorial for BDD test run with testng?

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

      Yes, TestNG is more functional testing fw

  • @keerthikrishnan9148
    @keerthikrishnan9148 2 года назад

    Io. Cucumber. Java. PendingEXception
    How to resolve this issue? Help

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Keerthi, looks like all your steps are not implemented with a step definition

    • @keerthikrishnan9148
      @keerthikrishnan9148 2 года назад

      @@RaghavPal sir, can u plz give your mail I'd so that I can send the file

    • @RaghavPal
      @RaghavPal  2 года назад

      just the file may not help here Keerthi, will need to check your setup and flow, I may not get enough time for that, Best will be to check the steps again and also refer some online examples

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

    nice video keep uploading

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

      Thank you, I will Amit

  • @mahmoudiwissem9240
    @mahmoudiwissem9240 Год назад

    Hello ,
    I am wondering why you don't add chromeDriver to PATH (Environment Variable)
    then do SetUp() method where it includes :
    WebDriver driver = new ChromeDriver();
    i think that would be less code .
    Plus using data driven here with the examples to pass test multiple usernames and passwords would be very cool to see in the course.
    Thank you for the Cucumber Series it's very helpful

    • @RaghavPal
      @RaghavPal  Год назад

      Great suggestion. Will check on this

  • @danishmerchant9232
    @danishmerchant9232 2 года назад

    By creating the cucumber framework google data browser n then normal browser opens

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Danish, pls check your script again, also see when happens when you run the next step, does it fail, in that case can check logs

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

    Nice Tutorial !!!!!

  • @ajayshetty5155
    @ajayshetty5155 25 дней назад

    website url is not working Raghav

    • @RaghavPal
      @RaghavPal  25 дней назад

      which one Ajay.. can use any demo site for practice

  • @AkAk-bw8ie
    @AkAk-bw8ie 3 года назад

    Sir can we implement this using vscode as well. Any disadvantages?

  • @Jayeshkannan
    @Jayeshkannan 6 месяцев назад

    How can I contact you? I have some requirements.

    • @RaghavPal
      @RaghavPal  6 месяцев назад

      Jayesh.. you can let me know here.. it's the best and fastest way

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

    where did you get this "user.dir"

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

      it is default property

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

    How do you check if Scenario failed ? @After step

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

      you can use assertions or listeners

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

      @@RaghavPal I'm using false but when assertion fails the build maven build still passes. Pleases advise, thank you.

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

      How to fail a build when assertion fails

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

      will check the details

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

      @@RaghavPal did you get a chance to figure out how to fail the build if testcase fails ?

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

    @Automation Step by Step...Hi Raghav Thanks for.sharing your knowledge. PLEASE.suggest How to Reuse Steps defined in one Feature file to other Feature File. In Katalon Studio..I have taken your udemy course on Katalon Studio .So if possible please add these things there also.

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

      Hi Shashikant, sure, I will check and update

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

      @@RaghavPal Thanks a lots.. I am sure I would get some advanve material on Katalon and Cucumber .Please give your time on udemy.

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

    Hi Raghav,
    Could you please share me the link of the Complete python tutorial

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

      Hi Avanthi, you can find my tutorials here - automationstepbystep.com/

  • @krishna_krupa5190
    @krishna_krupa5190 4 месяца назад

    login link not working

    • @RaghavPal
      @RaghavPal  4 месяца назад +1

      Can try with any other demo app

  • @Sunilshreyas
    @Sunilshreyas Год назад

    Thank you

    • @RaghavPal
      @RaghavPal  Год назад

      You're welcome Siddharth

  • @AnimalLoverIrfan
    @AnimalLoverIrfan 3 месяца назад

    Create a complete pdf file which contains all processes and end to end data of java selenium only wrt bdd

    • @RaghavPal
      @RaghavPal  3 месяца назад

      I will check on this

  • @gnaneshwarkatta4410
    @gnaneshwarkatta4410 4 месяца назад

    Iam getting this error while running the feature file can you please provide any solution You are using deprecated Main class. Please use io.cucumber.core.cli.Main

    • @RaghavPal
      @RaghavPal  4 месяца назад

      Gnaneshwar
      The error you're encountering is due to the deprecation of the Main class in Cucumber. The Main class has been moved to io.cucumber.core.cli.Main in newer versions of Cucumber.
      Solution Steps:
      To resolve this issue, you need to update your runner class to use the new Main class. Here's an example of how to do it:
      Before:
      java
      import cucumber.api.cli.Main;
      public class TestRunner {
      public static void main(String[] args) {
      Main.main(args);
      }
      }
      After:
      java
      import io.cucumber.core.cli.Main;
      public class TestRunner {
      public static void main(String[] args) {
      Main.main(args);
      }
      }
      Explanation:
      In the updated code, we've replaced the deprecated cucumber.api.cli.Main with the new io.cucumber.core.cli.Main. This should resolve the error you're seeing.
      Additional Tip:
      Make sure you're using the latest version of Cucumber in your project. You can check your pom.xml file (if you're using Maven) or your build.gradle file (if you're using Gradle) to ensure you're using the latest version
      -

    • @gnaneshwarkatta4410
      @gnaneshwarkatta4410 4 месяца назад

      @@RaghavPal Thanks raghav

  • @softwaretestingatoz3160
    @softwaretestingatoz3160 2 года назад

    java.lang.NullPointerException
    at StepDefinitions.LoginSteps.user_enter_username_and_password(LoginSteps.java:45)
    I got this error

    • @softwaretestingatoz3160
      @softwaretestingatoz3160 2 года назад

      i alredy checked Locator
      also use Timeout but i dkn what happen pls help

    • @RaghavPal
      @RaghavPal  2 года назад

      Hi Nikhil, check the syntax and setup again with the video