[2024][Updated]: Selenium + BDD Cucumber + Java + Web Driver manager + Allure reporting + POM

Поділитися
Вставка
  • Опубліковано 12 гру 2024

КОМЕНТАРІ • 69

  • @aceautomationacademy6926
    @aceautomationacademy6926  8 місяців тому +1

    Contents of this course: 🚀🚀🚀
    00:00:00: Introduction and contents to this course
    00:03:23: Installation of Intellij Idea in local machine
    00:06:54: Verify java in local machine ( If not there then installation steps) & setting up of system & environment variables
    00:15:34: Verify Maven in local machine ( If not there then installation steps) & setting up of system & environment variables
    00:23:00: Create a Maven Project and add cucumber plugin to the Intellij IDE
    00:28:51: Add cucumber dependencies: cucumber-java, cucumber-junit, cucumber-core of same version in POM xml
    00:36:04: Add Selenium Web driver dependency in the POM xml
    00:38:08: Why do need web driver manager and whats a web driver manager
    00:43:03: Adding web driver manager to the POM xml
    00:44:20: Adding folder structure to the project
    00:47:15: Introduction to BDD framework
    00:49:00: Application under Test and 3 scenarios that we need to automate
    00:54:14: Creating feature files in the project as per the 3 scenarios that we need to automate
    00:59:24: Introduction to the Page Object Model concept
    01:03:02: Creating pages in the project as per the page object model
    01:06:44: web element locators
    01:07:30: Different types of web element locators
    01:09:17: Types of Xpaths: Relative xpaths & Absolute xpaths
    01:12:00: Creating step definitions
    01:14:00: Creating Runner file
    01:15:35: Using and invoking web driver manager
    01:21:16: Updating runner file
    01:24:31: Updating the first testcase
    01:27:44: Running and debugging the first testcase
    01:42:02: Creating the second testcase
    02:15:02: Runner files setup
    02:18:00: Creating and designing the 3rd testcase which involves the web table
    02:36:57: Allure Reporting setup and integration with BDD framework
    Git hub link: github.com/aceautomationacademy/SeleniumCucumberWebDriverManager

  • @dagovf
    @dagovf 8 місяців тому +2

    not sure if you are awere, but since selenium 4.6 Boni's (Boni Garcia is part of selenium's dev team) Manager has been complely integrated to selenium,so you don't need to add the driver manager any more all it function is there in selenium

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому +2

      Thanks dagovf,
      Thanks for the great insight - thanks for helping the community

  • @adnana9906
    @adnana9906 5 місяців тому

    Great video mate. To the point. I opened two pull requests take a look.

  • @arjunraovasudevrao3875
    @arjunraovasudevrao3875 8 місяців тому

    Hi, thanks for the video. Can you make an extension video to cover more topics? Parametrization, CI/CD and Cloud and parallel execution.

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому +1

      Hi arjun rao :
      Kindly find advanced topics on this
      It would cover topics like CICD, cloud, selenium Grid
      www.udemy.com/course/docker-for-automation-testing-beginner-to-expertise/

    • @arjunraovasudevrao3875
      @arjunraovasudevrao3875 8 місяців тому

      @@aceautomationacademy6926 thanks.. Do you have a coupon for udmey.

    • @arjunraovasudevrao3875
      @arjunraovasudevrao3875 8 місяців тому

      @@aceautomationacademy6926 is there any promo for udmey

    • @arjunraovasudevrao3875
      @arjunraovasudevrao3875 8 місяців тому

      @@aceautomationacademy6926 Thank you for sharing. That course has good details.

  • @mohsinahmedohi
    @mohsinahmedohi 8 місяців тому

    You got a new subscriber today.
    anyways, how can I get the ppt slide shown in allure section?

  • @MyAbhyuday
    @MyAbhyuday 8 місяців тому

    Hi sir thank you for your videos . Its really helpful . I am constantly getting null pointer exception after intializing driver. Please advise

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому

      Hi Abhyuday,
      could you kindly confirm if your project build was successful. could you do a rebuild and then run. otherwise could you run 'mvn clean install' - which will ensure the latest libraries are installed in your project and run the test.

  • @rotamapandi9251
    @rotamapandi9251 5 місяців тому

    This is so good!!!!!!!

  • @sravs6574
    @sravs6574 8 місяців тому +1

    Browser is not launching and I have used the same steps what you have followed and tried by changing the versions in POM.PLz reply asap

  • @bharathkrqa4409
    @bharathkrqa4409 5 місяців тому

    Too good, thanks a lot

  • @arunprasadh6618
    @arunprasadh6618 4 місяці тому

    On 1:25:47 , you've changed the method name similar to the given step., Is it mandatory for all the test case method should has same name as the given step., however the step here we're metnioning in the @Given annotation?

  • @graok
    @graok 8 місяців тому

    Thanks for this video! It is amazing! But I wonder how can I create the allure.properties?

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому

      Good question!
      It has been explained at 02:43:58 in the video!
      Hope it makes sense and helpful

    • @graok
      @graok 8 місяців тому

      Thanks for the answer. When I open the folder they do not exist... @@aceautomationacademy6926

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому

      hi graok: yes you will have to create that properties file - it would not be there by default.

  • @khanhsabu9917
    @khanhsabu9917 7 місяців тому

    Why on this class section we dont have Hook class to manage before and after test anymore?

  • @sonyiostest
    @sonyiostest Місяць тому

    there is no much details on pom xml for allure and from where to pick it, and how to design it

    • @aceautomationacademy6926
      @aceautomationacademy6926  Місяць тому

      Hello : i think you missed - It starts from 02:36:57: Allure Reporting setup and integration with BDD framework

    • @praveenreddy6199
      @praveenreddy6199 Місяць тому

      @@aceautomationacademy6926 sorry to say this, But I also agree with @sonyiostest.... Please do another video on Allure reporting. I got lot of issues

  • @nashtraker
    @nashtraker 3 місяці тому

    allure cucumbe 6 dependency not working in mac OS..and also the plugin code

  • @JyotsnaEmani
    @JyotsnaEmani 4 місяці тому

    Hi I am not able to set the maven path. I am getting error in CMD. Please could you help me with this.
    C:\Users\jyots>mvn -version
    'mvn' is not recognized as an internal or external command,
    operable program or batch file.

    • @aceautomationacademy6926
      @aceautomationacademy6926  4 місяці тому

      Hi Jyotsna,
      Definitely the issue is maven is not there in the local machine
      Kindly install maven

  • @manavsharma2218
    @manavsharma2218 5 місяців тому

    Hi , on running the Logged in user View scenario, i am getting error as 'No features found at file:/C:/Users/Manav%20Sharma/Cucumberinfo/src/test/java/Features/LoggedIn.Feature' ,can you please guide how to resolve this as this path contains the feature file already?

    • @aceautomationacademy6926
      @aceautomationacademy6926  5 місяців тому

      Hi manav,
      can you check the glue path again - do a rebuild and check

    • @manavsharma2218
      @manavsharma2218 4 місяці тому

      @@aceautomationacademy6926 Yes i tried, now one more error is occurring with the mentioned error in my first comment of this video-Jul 19, 2024 6:48:33 PM io.cucumber.core.runtime.FeaturePathFeatureSupplier get

  • @avdoa334
    @avdoa334 7 місяців тому

    When i add click_hamburger_menu and click_signIn_link to home page of step definitions it is not working even after i do import. Is there any way you can help me out how to fixt it? Thank you

  • @AnuroopP-kl6vg
    @AnuroopP-kl6vg 4 місяці тому

    HI first of all thanks for the video, Actually from Selenium 4 there is no need to externally give the driver path neither using WebDriver Manager i think it by default pick the driver right. Is there any specific reason that we should use WebDriver manager ?

    • @aceautomationacademy6926
      @aceautomationacademy6926  3 місяці тому

      Hi Anuroop,
      You're correct! In Selenium 4, the WebDriver binaries are managed automatically, which eliminates the need to set the driver path manually or use an external WebDriver Manager. Selenium 4’s built-in driver management automatically downloads the correct version of the driver based on your browser and operating system.
      Reasons to Still Use WebDriver Manager
      Despite this built-in capability, there are still some specific reasons why you might choose to use WebDriver Manager:
      Version Control: WebDriver Manager allows you to specify exact versions of drivers, which can be crucial when dealing with compatibility issues between browser versions and drivers, especially in CI/CD environments where consistency is important.
      Handling Multiple Browsers: WebDriver Manager provides more flexibility and control when working with multiple browser versions or configurations. It simplifies the setup, especially in complex environments.
      Automatic Driver Updates: It keeps drivers up-to-date automatically, reducing the need to manually manage driver updates when browsers are updated.
      Custom Driver Configuration: WebDriver Manager offers various configuration options that aren’t available with Selenium's built-in driver management. This includes proxy settings, custom driver storage paths, and custom timeouts.
      Robustness and Reliability: WebDriver Manager has been in use for a long time and is trusted in many production systems for its robust handling of driver binaries. It also provides better error handling when issues arise, making it easier to debug.
      Compatibility and Community Support: WebDriver Manager is widely used, and it benefits from extensive community support and updates, which might be helpful in troubleshooting driver-related issues that arise.

    • @anuroop7450
      @anuroop7450 2 місяці тому

      Thanks for the detailed explanation

    • @aceautomationacademy6926
      @aceautomationacademy6926  2 місяці тому

      @@anuroop7450 : thanks again

  • @Emihomero
    @Emihomero 8 місяців тому

    Hello, how are you? Could you please add Spanish subtitles to the video so I can watch it? I really need what you're teaching, and I can't seem to find Spanish subtitles. I would really appreciate it. Thank you!
    Warm regards.

  • @venugopalv7407
    @venugopalv7407 Місяць тому

    Hi Sir, i am new to selenium but still could able to follow your complete video and successfully setup and run. But when i try to run npm install i am getting the below error. could not able to find the root cause. please help me on this.
    PS C:\Users\user\IdeaProjects\MySelenium_1> npm install -g allure-commandline --save-dev
    npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of
    the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + npm install -g allure-commandline --save-dev
    + ~~~
    + CategoryInfo : ObjectNotFound: (npm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    • @aceautomationacademy6926
      @aceautomationacademy6926  Місяць тому

      Hi Venu,
      This error is appearing as node is not installed in your machine- kindly install node and retry

    • @venugopalv7407
      @venugopalv7407 Місяць тому

      @@aceautomationacademy6926 Thanks, but i have already installed its v20.18.0. Please guide me if something else is missing. thanks

  • @AbhishekChauhan-t3u
    @AbhishekChauhan-t3u 5 місяців тому

    Hi Sir, I am not able to install allure command through inteli terminal. Please help me to resolve this error

    • @aceautomationacademy6926
      @aceautomationacademy6926  5 місяців тому

      Hi,
      what error are you getting when tried to enter the allure command - could you kindly provide that

  • @upenyadav1319
    @upenyadav1319 2 місяці тому

    How to link it to Jenkins?

  • @soumya6812
    @soumya6812 8 місяців тому

    hello, i think you have re-uploaded this video.

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому +2

      Hi Soumya : yes I did. There was a small clip which was out of sequence in last video : hence it’s corrected in this new one. UA-cam doesn’t allow to change a video - only reload, hence this video is updated one. We will delete the previous one soon in 1 week or so

    • @soumya6812
      @soumya6812 8 місяців тому +1

      @@aceautomationacademy6926 i have one doubt how can we run this script through jenkins? if you could do this . then it could be an end to end project.

    • @soumya6812
      @soumya6812 8 місяців тому

      ​@@aceautomationacademy6926hello, i had one doubt. how can we run this script using jenkins? and which command to use in jenkins environment?

    • @soumya6812
      @soumya6812 8 місяців тому

      like can we use mvn command? like mvn -test

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому

      Yes ‘mvn-test’ command will run the tests as it’s a maven project

  • @eragarlarahulkrishna3801
    @eragarlarahulkrishna3801 8 місяців тому

    yeah hi
    i am getting 404 error in reports, i just cloned the repo and made it run i have java 11 and remaining things got ready

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому

      Hi: was your build successful, did you do rebuild and was it successful
      One more suggestion: after you download - could you run ‘mvn clean install’ and check

    • @eragarlarahulkrishna3801
      @eragarlarahulkrishna3801 8 місяців тому

      @@aceautomationacademy6926 now only I noticed for me 'cucumber-html-report' is not generating

    • @aceautomationacademy6926
      @aceautomationacademy6926  8 місяців тому

      Hi Rahul krishna: was the build successful, are the tests running successfully for you in local before report generation- kindly confirm

  • @subrahmanyaadiga4178
    @subrahmanyaadiga4178 8 місяців тому

    Hi Can you share me your git link for this project