Part 1: Selenium with Java+Cucumber(BDD) Framework Development from Scratch

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

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

  • @ununiq
    @ununiq Год назад +9

    Considering that this video is 3 years old, still valid. Very easy to follow and learn a lot. Thank you for not cutting the parts when something went wrong. Those parts were the key for me. I now know how to approach the defects and where to look!

  • @ksdnsdkumar1375
    @ksdnsdkumar1375 2 года назад +49

    @01:37 Creating a Maven Project
    @03:02 Adding dependencies to pom.xml
    @06:50 Creating Feature folder
    @07:05 Creating PageObjects package
    @07:34 Creating stepDefinition package
    @07:51 Creating Utility package
    @08:00 Creating Drivers folder
    @08:46 Copying browser drivers into Drivers folders
    @12:06 Creating feature file
    @12:23 Writing a scenario with Gherkin syntax with parameters
    @15:00 Creating page object class
    @19:35 Creating StepDefinition class
    @26:26 Changing parameters inside StepDefinition class
    @27:52 Creating WebDriver object inside StepDefinition class
    @28:15 Creating object for page object class inside StepDefinition class
    @29:04 Instantiate object of page object class inside StepDefinition class
    @29:40 | @50:50 Configuring the browser driver path inside StepDefinition class
    @32:23 Using get() method inside StepDefinition class
    @33:07 Calling credentials methods of page object class into StepDefinition class using parameters
    @35:21 Validating login page inside StepDefinition class using parameters and assertions
    @37:58 Calling logout method from page object class into StepDefinition class
    @39:33 Calling closing the browser method from page object class into StepDefinition class
    @41:05 Creating TestRunner package and its class.
    @47:51 Running the TestRunner class as Junit
    @48:34 Adding monochrome to TestRunner class and running as Junit
    @51:46 Viewing reports.
    @53:08 Data driven in Cucumber by adding one more scenario into feature file
    @57:13 Running the TestRunner class as Junit
    01:01:42 Viewing reports.

  • @meenanangina8173
    @meenanangina8173 3 года назад +24

    Thanks for your detailed explanation. I followed the exact steps and results came out successfully.

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

      detailed? he skipped how many steps 🤦

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

      Hello Meena, can you help me with one thing. After performing exactly this way m getting error as this.driver is null instead of declaring it as public. It only works aftr declaring it as static in stepdefinitions. Can you plz help me with this

  • @g.praveenkumar8760
    @g.praveenkumar8760 4 года назад +9

    Getting confidence to learn any technology By watching your sessions

  • @mukundkumar6500
    @mukundkumar6500 9 месяцев назад +2

    I didn't know how to write code in step Definition .This video solved my problem . Thanks very much Sir

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

      You are most welcome

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

    OMG thank you so much for the videos you create! I finished Part 1 in 2 days with a lot of hard work, googling, even crying. since dependencies and our environments are different, but it was totally worth it. Looking forward to Part 2

    • @SujathaR-to3wc
      @SujathaR-to3wc 10 месяцев назад

      Hey, can you pls tell how you have downloaded tools.jar file in pom.xml. Do we have to download the jar file and from where you have downloaded the jar file?

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

      Is the url still working ? nopcommerce site ?

  • @bindunagaraj123
    @bindunagaraj123 3 года назад +12

    A big salute to your knowledge and the way you explain concepts.Thank you for sharing your knowledge

  • @ashwinikhanna
    @ashwinikhanna Год назад +2

    Thanks Pavan sir. You make learning so easy. I like the way you teach. I have left other RUclipsrs and come to you just because of your teaching style and valuable information you provide in a easy to understand manner.

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

    The best automation class, best thing is no step is skipped !

  • @G.A.HoopersTV
    @G.A.HoopersTV 3 года назад +3

    Thank you for the detailed explanation, I have completed the 4 videos for cucumber

  • @sunilkumarbhuvin6814
    @sunilkumarbhuvin6814 Год назад +2

    Thanks for the video on BDD With Cucumber sir so easy explained you are very good teacher.Thanks

  • @HafizurRahman-dr3xe
    @HafizurRahman-dr3xe 3 года назад

    To say that, it is very clear and step by step and that's why when we see your video clips we get confidence and we could think that we have lean it everything that always gives us confidence very much

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

    Thank you Sir. Great great great framework creation from scratch to great high level.

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

    THANKS FOR THE VIDEOS.....WE HAVE LEARNT SOMETHING AND GOT CLEARED THE MAXIMUM DOUBBTS

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

    I am reallly learning more from ur videos sir it’s very clean and clear no overlapping and to the point thank u sir

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

    simply the superb I have ever seen...thanks ton

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

      You are most welcome

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

    Before I was following my institute lecture but not get the cucumber icon and I was worry about 4-5 days in cucumber but after follow this lecture I get the cucumber icon in eclipse ide.thanks......sir

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

    Really well explained. You are my Guru!

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

    You are awesome sir. Mind blowing teaching skills. Hats-off!!!!

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

    very well explained. Thank you Pavan sir

  • @vibelover5444
    @vibelover5444 5 лет назад +14

    This is very much underrated channel.. thank you so much.. when will other parts of the video are releasing on BDD??

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

    This is helpful, thank you Pavanji.

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

    Very useful and Valuable video.. !!! Thanks a lot bro .. !!!

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

    I really love your lecture you a great 👍 teacher

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

    Very clearly explained sir. Thank you

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

    its very helpful sir.............thank u so much sir........👌👌👌👍👍👍🙏🙏🙏🙏🙏

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

    The Cucumber+ Selenium part is very well explained. I was able to understand it very clearly.
    However, I think you should not use bad practices on other stuff, like using the Thread.sleep. You should have used 2 mins more and used a proper implicit or explicitWait. That way people that are starting by watching your video, would not use Thread.sleep which is a really bad thing to do. Other point is that method @page_Title_should_be, it should not check on the HTML source whether it had that text, it should be checking for the title, as the method signature indicates.
    Anyway, thank you for the video and i have learned the basics on how to use Cucumber + Selenium, which was my target :)

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

      Can you explain why thread. Sleep is a bad practice?

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

      @@reddaboinavivek7494 well, thread.sleep is a static wait, that even if you could find an element in 1ms, its still going to wait the time you specified in the Thread.sleep. This makes your code slower than it has to be. On top of that, the built-in waits will give you a more meaningful error message and can be configured globally or per method or class on your code, so you don't need to even use any statement, it already knows it can wait for X amount of time before something times out.

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

    very good. thank you for sharing your knowledge. please do a video on rest assured

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

    Thanks for sharing... waiting for the rest of the videos

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

    Best videos for selenium....

  • @sureshbhabugl
    @sureshbhabugl 4 года назад +13

    Hi Pavan,
    Thanks for the videos. Do you share the documents used in the video with us or is it proprietary? If it isn't, could you please share the same here in comments section?

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

    Great explanation sir 🎉🎉

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

    Great explanation! thanks

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

    Thank you sir. Your videos are really informative 🙏🙏🙏

  • @HafizurRahman-dr3xe
    @HafizurRahman-dr3xe 3 года назад +1

    Thanks very much, it is very impressive .

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

    you are amazing thank you so much !

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

    Thank you very much Sir!

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

    had an issue about the maven dependencies: cobertura code coverage
    the repository (cobertura code coverage) is dependent on tools.jar in the java folder but java version above 8 exclude that file or does not depend on that tools.jar file.
    Solution, use exclusion tag in the cobertura dependency tag

    net.sourceforge.cobertura
    cobertura
    2.1.1
    test


    tools
    com.sun

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

    Thank you very much pavan garu

  • @Venkatesh.Bala23
    @Venkatesh.Bala23 3 года назад +3

    pls provide prerequisites for watching this video. I am in the middle stage of learning selenium. I couldn't understand what is annotations, page objects kind of things because I did not watch those videos, please provide path(order) for following your videos sir. your content is awesome by the way!

  • @RaviKumar-hz8cf
    @RaviKumar-hz8cf 4 года назад +2

    Such a great content

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

    When I'm trying to run the TestRun Class as a Junit test, I'm getting following message on console :
    No features found at [classpath:testRunners]
    0 Scenarios
    0 Steps
    0m0.225s
    The path of the feature file is correct in Cucumber options.
    Any help will be much appreciated.

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

    Beautifully explained!

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

    Hi Sir,
    while trying to setup run configurations, I'm getting "JRE not compatable with project.class file" error. Please help in resolving this

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

    why is a method not defined for " page_title_should_be_something(String strArg1)" after clicking the Logout button

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

    Hi , If we want to use cucumber we need to use with any of the UI testing tools like selenium otherwise we can not test it right.? can you please clarify this.?

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

    Sir, I am trying to run the feature file and facing the below issue .............Couldn't create a file output stream for 'target'.
    Make sure the file isn't a directory.

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

    Thank you Pavan

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

    Thank you Bhai

  • @kuldeepmishra4310
    @kuldeepmishra4310 4 года назад +5

    Hi, Mr.Pavan When I run the "TestRun" class I am getting an error method initialization error not found. Please advise How I can resolve this error.

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

      add below dependencies in pom.xml
      info.cukes
      cucumber-java
      1.2.5

      info.cukes
      cucumber-junit
      1.2.5

      info.cukes
      cucumber-jvm-deps
      1.0.5
      provided
      net.masterthought
      cucumber-reporting
      5.0.2
      info.cukes
      gherkin
      2.12.2
      provided
      junit
      junit
      4.13
      org.seleniumhq.selenium
      selenium-java
      3.141.59

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

      @@sumitpatil5791
      Thanks its working
      just add the above and build the project again

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

      @@sumitpatil5791 I'm getting "cannot find symbol class CucumberOptions" error. I've added all the dependencies what have mentioned above. Please suggest.

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

      How can I add the com. sun tools jar file to Java .
      What is the use of it.
      How to add it in to my cucumber project
      Pz tell me, step by step

  • @zt.5677
    @zt.5677 Год назад +1

    Thank you!

  • @akshayy3006
    @akshayy3006 10 месяцев назад +2

    Good Video

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

    I have implemented everything as you explained in this video..there is no compilation error, but my stepdefination file have 5 tests and not getting executed. The result is my all tests are getting skipped.... cucumber.runtime.junit.UndefinwdTrowable error. How to resolve this error?

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

    Hi Pawan Sir, From where we get the dependency pom.xml file that you used in framework? I have seen in video that dependencies are already added in pom.xml file. Please share the link from where we can download the same pom.xml dependency file or we can create same in our project.
    Thanks

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

    Am getting this error while doing cucumber .
    Cucumber.runtime.java.objectFactoryLoader loadsingleobjectfactory
    What does it mean sir.could u plz tell me sir.

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

    hii sir in my pom .xml file showing error as"[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
    "
    how to solve this error , iam using same repository which is shown in video

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

    Hi sir,
    I do not have the 'import cucumber.api.CucumberOptions' class import listed. On adding that I was getting "The import cucumber.api.CucumberOptions cannot be resolved" error. What should I do to get it?

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

    what is ldriver = rdriver. i don't understand

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

    "No backends were found. Please make sure you have a backend module on your CLASSPATH."
    after all doing i am getting above error
    where is the issue pls help

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

    Dear Sir, Thanks for such a wonderful session. I am facing one issue here, do not get the test-output folder, instead get a file "test-ouput" which opens fine with only FF. Unable to understand the issue. Request you to help please.

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

    thank you so much

  • @shrutik.93
    @shrutik.93 Месяц назад

    In title it is mentioned bdd and video content for hybrid why sir

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

    It's so clear understand from basic level. Could you please provide the document whatever is shared in the video

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

    please see the snapshot shared and let me know the changes to be done to the TestRunner file

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

    Are selenium framework tutorial available on your channel??

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

    Thanks great

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

    Thank you for this tutorial. Can you please teach how to output xray json file format in the report instead of html? Thank you.

  • @NaweedKarimi-h6y
    @NaweedKarimi-h6y 8 месяцев назад

    Hello, I have not the drivers to add in drivers folder, would you please guild me how can add drivers in drivers folder because in the video you copy from an other project , I will really appreciated if you let me know.

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

    I am not able to generate report html folder, only json and XML folder are generated. When trying to generate html folder, it's generating some unknown file.
    For html using plugin = {"pretty", "html:report-folder"}

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

      bro I ma getting the same error How did u resolve

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

    After executing the Test Runner file, test-output folder is not created and iam unable to find any html reports in that.

  • @vinaykumar-kl9eg
    @vinaykumar-kl9eg 2 года назад +1

    excellent

  • @navitanagdive2595
    @navitanagdive2595 10 месяцев назад +1

    How to add this tools.jar dependency please explain more

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

      Hi, did you figure it out? Ran into the same issue

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

    Sir I'm getting plugin error,it saying "the attribute plugin is undefined for the annotation type Cucumber options"how to overcome it sir

  • @cu-a862
    @cu-a862 3 года назад +2

    Hi I would have loved you to use Intellij idea as the editor, I really enjoy the last session on that.
    Again I can not see tools.jar on my jdk and I am running into error, can you advise how to overcome this in my dependencies. Thanks for the great work.

    • @1127swati
      @1127swati 3 года назад

      I'm getting the same issue..not sure how to resolve this..

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

      @@1127swati found any solution ?

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

      hi, you can use exact dependency version which mentioned here.

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

    cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
    I am facing this issue . Can somebody help to tackle with it.

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

    In feature file I am writing" plugin={"pretty", html:test-output} ", It is asking name instead of plugin, if I write name I am not getting output in Console, WHAT WILL I DO NOW

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

    Hello, Sir, i am getting the following exception.
    CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.

    • @sridevi-jp3ic
      @sridevi-jp3ic 4 года назад

      Hello sir , Have you resolved this problem? I'm getting the same problem.

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

      @@sridevi-jp3ic Not yet, request you tell me if you get the solution.

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

    Class cannot be resolved to a type
    Cucumber cannot be resolved to a type.................HOW CAN I RESOLVE THIS ISSUE

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

    Please post video for latest BDD+Cucumber+TestNG+POM framework

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

    Hi Sir , Good Session and Thankyou for the session , can you have a same kind of tutorial with Intellij using cucumber.

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

    Good video, is there any link (eg. github) to access the code?

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

      yes u can find github link on video discription from other videos.

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

    Hi Sir, Though I installed latest JDK version, tools.jar file is missing. Please help me how to get right JDK and tools.jar file
    Here is location of my JDK and lib version C:\Program Files\Java\jdk-17.0.1\lib

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

    after i modified the "Run configuration" it resulted in only one method as output after running the Login.feature file

  • @audiolibrary-music2919
    @audiolibrary-music2919 2 года назад

    I have question how you get data from one scenario to another scenario in cucumber

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

    Hi Pavan Sir
    Please provide a platform to solve our doubts

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

    I am getting error-"You are using deprecated Main class. Please use io.cucumber.core.cli.Main" while running feature file. Please help me resolve this error.

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

      Did you find the solution ?

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

      @@sheelak2023 yes

    • @sreeram2386
      @sreeram2386 11 месяцев назад +1

      ​@@dineshkumarpanda7287hi bro I am also face these could you help me with solution

    • @dineshkumarpanda7287
      @dineshkumarpanda7287 11 месяцев назад

      @@sreeram2386 give me some time, i will send my pom.xml file. You can try with that.

    • @dineshkumarpanda7287
      @dineshkumarpanda7287 11 месяцев назад

      @@sreeram2386 i will upload my pom.xml file by eod today. You can use that and check whether your issue is resolved.

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

    when i run the Login.feature file , that code is not getting generated from Eclipse what should i do - i did not install natural as i am unable to install from Eclipse Market Place -- is that the reason

  • @Sant-s7p
    @Sant-s7p Год назад +1

    Thanks sir

  • @KIRANYADAV-kx7wu
    @KIRANYADAV-kx7wu Год назад

    I am facing issue with eClipse JNI error. please check your installation and try again..... can you please resolve it

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

    One doubt if we are not able to install cucumber plugins from eclipse market place in remote machine.then how to install it in another way?

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

    sir, i am fimding initialization error and TestRun[JUnit] terminated, pl help. thank

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

    You are doing a good job sharing your knowledge, but you need to brush up on the what and whys of BDD.
    i was going along fine watching the video and then i saw your BDD example. Sorry to be so blunt, but that's a very bad example of how to write a BDD scenario. Its not a good idea to include multiple "Given", "When", "Then" in a test scenario.
    You can have multiple "And' included, but should not repeat "Given", "When", "Then" keywords.

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

    Thanks!

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

    Thanks a lot

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

    Hi, Mr Pavan. am getting NullPointException. can u pls tell me how to solve it

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

      This may be coz you have not provided life to the driver in your page objects.

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

    Sir these videos are very helpful. By any chance you can drop some videos for Cucumber framework with Playwright and Java

  • @devimaheswaran-r9k
    @devimaheswaran-r9k 2 месяца назад

    how to add tools.jar i am getting error plz help sir
    com.sun
    tools
    1.5.0
    system
    C:\Program Files\Java\jdk-18.0.2\lib\tools.jar
    it shows tools.jar file is missing. how to resolve this issue sir?

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

    Where to go that tools.jar file (3:53)

  • @Sandeepsunny-z7y
    @Sandeepsunny-z7y 6 месяцев назад

    Hi sir. 42:01 whenever I'm entering it is showing error like "create cucumber class" . Where should I create and what I need to do in that class

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

    Can we get all these dependencies at one place or is there any link where we can copy it all