Learn Maven (Build Automation Tool) with TestNg and Selenium

Sdílet
Vložit
  • čas přidán 31. 07. 2024
  • Learn Maven (Build Automation Tool) with TestNg and Selenium:
    Topics Covered:
    • Maven Architecture
    • Maven Setup
    • Maven Plugin on Eclipse
    • Maven Life cycle
    • Maven Plug-ins
    • Maven Dependencies
    • Setup your maven project in Eclipse
    • Maven Commands
    o Run it from Eclipse
    o Run it from Command Line (Terminal)
    • TestNG integration With Maven
    *Configure Selenium with Maven in Eclipse
    *How to integrate Selenium with Maven
    =========================================
    **Download Maven from here:
    maven.apache.org/download.cgi
    **Setup Maven in laptop/machine/desktop:
    On windows:
    www.mkyong.com/maven/how-to-i...
    On Mac/Linux:
    www.mkyong.com/maven/install-...
    Download Complete code from GIT URL:
    =========================================
    **Subscribe to the channel, and press the bell icon to get some interesting videos on Selenium and Automation:
    czcams.com/users/Naveen%20Au...
    Follow me on my Facebook Page:
    / naveenqtpexpert
    ~-~~-~~~-~~-~
    Follow my Site/Blog: www.naveenautomationlabs.com
    ========================================================
    Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
    • Selenium & Automation ...
    ~-~~-~~~-~~-~ 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/COJqZUPB02r5sB7...
    Paid courses (Recorded) videos:
    Java & Selenium Course: www.naveenautomationlabs.com/p...
    API Course: www.naveenautomationlabs.com/p... ➡️Get Our Courses✔️
    📗 Get My Paid Courses at
    Paid courses (Recorded) videos:
    Java & Selenium Course: www.naveenautomationlabs.com/p...
    API Course: www.naveenautomationlabs.com/p...
    -------------------------------
    ✔️SOCIAL NETWORKS
    Facebook: / naveenqtpexpert
    Twitter: / naveenkhunteta
    Blog: www.naveenautomationlabs.com
    --------------------------------
    Support My Channel✔️Or Buy Me A Coffee
    Paypal: paypal.me/naveenkhunteta
    Google Pay: naveenanimation20@gmail.com
    --------------------------------
    ✔️Thanks for watching!
    देखने के लिए धन्यवाद
    Благодаря за гледането
    感谢您观看
    Merci d'avoir regardé
    Grazie per la visione
    Gracias por ver
    شكرا للمشاهدة
  • Věda a technologie

Komentáře • 213

  • @reddy-bu9jh
    @reddy-bu9jh Před 3 lety +1

    The way explanation is very good sir
    It's a crystal clear explanation and you are the best sir which I have seen in CZcams channels

  • @rmdhananjay2561
    @rmdhananjay2561 Před 3 lety

    I can't express in words of how grateful I am for your videos.

  • @padmapabba759
    @padmapabba759 Před 5 lety +10

    Lots of respect🙏
    Today i have selected in an interview....its because of you

  • @harmanmaan870
    @harmanmaan870 Před 6 lety +1

    Hi Naveen , Thanks again , I am watching your almost all videos , Very helpful for me for clearing doubts about selenium. As i was learning from few months but from last month i have just seen your videos for new things.

  • @chmaruthi
    @chmaruthi Před 6 lety +1

    It's cool sir, your explanation washed-out all my doubts about maven... keep up the great work

  • @vijayrampogu
    @vijayrampogu Před 5 lety +3

    Super Video. much better than paid training. I highly recommend for selenium tester.

  • @lisazhou7776
    @lisazhou7776 Před 4 lety +1

    Naveen, I really like your video. You always make the complex concept to simply explanation. You explained how to find the resource and some tips. I read many Maven articles till watch this video, I understand the tool totally. Keep posting. Thanks a lot.

  • @hellosasmitasgreenworld1896

    Thank you so much Mr. Naveen for sharing videos with in 2 hours i learnt manven fully as i am a fresher.

  • @deepagupta274
    @deepagupta274 Před 6 lety +1

    Explained in such an easy way. Thanks a lot Naveen Sir.

  • @mahia2030
    @mahia2030 Před 5 lety +3

    Great explanation, simply awesome, thanks for all your efforts to make it more simple to understand 🙏

  • @bhardwaj16nidhi
    @bhardwaj16nidhi Před 6 lety +1

    Awesome video on Maven. Thanks Naveen for sharing this.Very helpful.

  • @mudaseer21
    @mudaseer21 Před 5 lety +1

    Your teaching is apple of our eye

  • @rushrpa3433
    @rushrpa3433 Před 5 lety +1

    Thank you Naveen, it is really helpful. I new to this, but I could able to perform your task by own after your class. Many Thanks :-)

  • @arpitsukirtidavyaah7744

    Thank you so much Naveen for all the efforts and the knowledge you are sharing with us. Honestly speaking, I am able to grow in my career and learn the things in easier way through your videos only. Otherwise I never thought I would even able to code a single line of code in my life. Testing field has become much more interesting for me after I have gone through each video of your's in CZcams Channel.
    Thank you once again. Keep sharing knowledge with us with your fantastic teaching skills :)
    Eagerly excited for upcoming videos too :)

  • @Deepaksharma-bt6vq
    @Deepaksharma-bt6vq Před 5 lety +3

    Hats off to you dude... you have made these things very easy !!! Thanks a ton!!!

    • @arunkhatri8133
      @arunkhatri8133 Před 5 lety

      @Deepak : I followed up this video and I prepared same coding and structure but when i select project and right click on RUN AS + Maven Test then I am getting message BUILD SUCCESS but I can not show my test status cases below it so can you please help me out for this
      Review screenshot URL : prntscr.com/oq0b3u

  • @dineshns4736
    @dineshns4736 Před 6 lety +1

    mind blowing explanation... Huge topic explained well in a brief video.. great work..

  • @pradyumnnasatapathy8199
    @pradyumnnasatapathy8199 Před 6 lety +1

    Thanks Naveen for this video ... Diagrammatic representation is very good to understand key concept... these 2 videos gives much info regarding Maven to start with..

  • @lakshmivinnakota5011
    @lakshmivinnakota5011 Před 6 lety +1

    Thank you Naveen for the detailed explanation, executing testng.xml file in pom.xml is very clear. Thanks for sharing your knowledge :)

  • @explorewithsoumen
    @explorewithsoumen Před 2 lety +2

    Hi Naveen, I was following your channel for past 6 months on selenium testing.. I attended interview and got selected At TCS.. Thanks a lot for your videos.. It helped me a lot to gain knowledge on selenium testing .You are a gem❤.. God bless you

  • @arunkumar-eb9rx
    @arunkumar-eb9rx Před 6 lety +1

    Thanks for providing the maven tutorial.

  • @user-wq3gw1lg6f
    @user-wq3gw1lg6f Před 5 lety +1

    Thanks a lot Naveen . You helped demystify maven to me.

  • @cjeyaraman
    @cjeyaraman Před 5 lety +1

    Superb Explanation Naveen. Thanks a ton.

  • @rashmi9212
    @rashmi9212 Před 5 lety +1

    Thanks Naveen...Thanks for sharing your knowledge.

  • @anushareddychalla75
    @anushareddychalla75 Před 5 lety

    Nice serieslly I'm addicted your vedios
    ..thanks alot..

  • @shubhiverma4005
    @shubhiverma4005 Před 4 lety

    Very nice session ...very nicely explained anyone who is new will understand it . thanks for sharing

  • @nitesh2311
    @nitesh2311 Před 6 lety +1

    Great work Naveen. Thank you

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

    Just wanted to add this point - At 35:45 the reason DemoTest1 and DemoTest2 are not run as part of mvn test is because they do not comply to standards defined of ending classes with the word Test.
    Rest your explanation is amazing 👍

  • @Torkmstr
    @Torkmstr Před 2 lety

    Guruji..what an explanation.Thanks, brother

  • @mayurkarnik310
    @mayurkarnik310 Před 6 lety +1

    Great video...very nice n clean explanation.Thanks

  • @apurbarath4972
    @apurbarath4972 Před 5 lety

    Excellent tutorial..hats off Naveen

  • @samratjulme8418
    @samratjulme8418 Před 2 lety

    Thank u sir..great video ...keep uploading...and updating.... 🙏👍👌🙏

  • @rightside5924
    @rightside5924 Před 2 lety +1

    You are the true citizen of the country

  • @wilsonfernandes21
    @wilsonfernandes21 Před 6 lety +1

    Really helpful.
    Thank u

  • @shruthiAlways02
    @shruthiAlways02 Před 5 lety +1

    Too good explanation.. thank u so much..

  • @bsrinivas165
    @bsrinivas165 Před 6 lety +1

    Awesome Explanation... Keep up the great work 💐💐😍😍

  • @vive121
    @vive121 Před 6 lety +1

    You are an inspiration. Thank you for explaining in detail. Keep rocking... :)

  • @AbhishekSingh-bj8yc
    @AbhishekSingh-bj8yc Před 5 lety

    Thank you so much for sharing such a wonderful video.... Earlier i was so confused with concept of Maven but it helps me a lot finding the right track. Thanks again.
    Just have one doubt :
    1) What default src/main/java and how can it be used with out test cases / in what condition we can use it ?

  • @shefalikharia5147
    @shefalikharia5147 Před 4 lety +1

    hi Navven..I really like in which way u r teaching. and most important thing u always try to cover all the topics

  • @venkatjayakumar1819
    @venkatjayakumar1819 Před 3 lety +1

    Just Awesome Naveen... :)

  • @sivaprasadkandula
    @sivaprasadkandula Před 5 lety

    Excellent :) Thanks for sharing video :)

  • @aamirsaifi829
    @aamirsaifi829 Před 5 lety

    Thanks for your knowledge

  • @vasudeva9522
    @vasudeva9522 Před 4 lety

    very very good explanation. thank you so much

  • @vijaygunjal4492
    @vijaygunjal4492 Před 5 lety

    Refrain from saying 'OK' consistently 😃. Thanks for the video. It's very helpful and informative!

  • @bipinmnair007
    @bipinmnair007 Před 4 lety

    Great explanation :)

  • @nikhilbhanvadiya1933
    @nikhilbhanvadiya1933 Před 4 lety

    very good explanation sir thank you so much

  • @charithananayakkara7
    @charithananayakkara7 Před 5 lety +1

    Thanks Naveen :)

  • @PrashantThakur11
    @PrashantThakur11 Před 3 lety +1

    thanks a lot sir its really helpful to me ....

  • @kirandas9481
    @kirandas9481 Před 4 lety +1

    Can you please create a separate playlist for Maven and add these videos to it, as it would be easier to find the files. TIA:) I am following your videos from last 2 months, they are very useful. Appreciate your efforts.

  • @rajeshkumar-qz6jw
    @rajeshkumar-qz6jw Před 6 lety +1

    Awesome videos, thanks for sharing your knowledge with us. Can you also let us know how to generate reports using testng while executing the tests in Maven.Thanks in advance!!

  • @Driverforcash
    @Driverforcash Před rokem +1

    very nice video!

  • @poulomi21b
    @poulomi21b Před 5 lety +2

    Thanks naveen for this creating this wonderful video. I have one question how can I create a runnable jar file , so that some other team member can execute the test suite from cmd. I have used Maven to create the selenium project.

  • @santleon1
    @santleon1 Před 6 lety +1

    Hi Naveen, First and formost thank you for sharing your knowledge with us. Can you please post Java interview programs and logic and Test management tools tutorials .. Thanks in advance

  • @limbritadaikalam1847
    @limbritadaikalam1847 Před 4 lety

    Thank you!

  • @chillamcharlabharath9730
    @chillamcharlabharath9730 Před 6 lety +1

    Hi Naveen,
    After adding the Source plugin and running through clean install - i am getting below error message for source plugin
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:3.0.1:jar (default-cli) on project Test: Execution default-cli of goal org.apache.maven.plugins:maven-source-plugin:3.0.1:jar failed: A required class was missing while executing org.apache.maven.plugins:maven-source-plugin:3.0.1:jar: org/codehaus/plexus/interpolation/InterpolationException

  • @VishalKumar-lj7xs
    @VishalKumar-lj7xs Před 4 lety +1

    Thanks Sir.

  • @MSH-YT
    @MSH-YT Před 6 lety +8

    At some point for downloading maven plug-in Naveen said, "go to Help" and for me it sounded as "go to Hell" :D, Just for fun!. But Naveen you are awesome person. Thanks for sharing your knowledge. May god bless you! :)

  • @bhawnajyoti2000
    @bhawnajyoti2000 Před 3 lety

    Very nice sir...

  • @RINA641
    @RINA641 Před 5 lety

    Hello Naveen,
    I am able to execute tests in Maven project from eclipse. Do I need to install maven jars to be able to execute the same from command line? mvn commands are not getting recognised by command line.

  • @supriyassampath1419
    @supriyassampath1419 Před 5 lety

    Amazing video

  • @priscilla11731
    @priscilla11731 Před 6 lety +1

    Hi Naveen,trust you are well. I am getting this error": Could not find or load main class org.testng.remote.RemoteTestNG" do you know what could be the cause?i am running the same code as the above and when i run using maven the build is successful but the is not output from the test-cases

  • @shobhit9826
    @shobhit9826 Před 6 lety +1

    This is Awesome

  • @aihaitipaziliti2655
    @aihaitipaziliti2655 Před 5 lety +3

    Hi naveen, thanks for uploading such a great videos all the time.
    where can i find your git url.

  • @skyatianlan2356
    @skyatianlan2356 Před 3 lety

    Thanks!

  • @runanayak4365
    @runanayak4365 Před 5 lety

    Suppose we have already TestNg jar are installed in my eclipse.. Then again if I have installed Testng in maven dependcies.. Is there any problem

  • @madhukrishna580
    @madhukrishna580 Před 5 lety

    Hi naveen,
    While creating maven project getting the below error:
    Could not resilve archetype org.apache.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
    Getting the below error in pom.xml file . Can you please help
    "Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile)
    CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: ArtifactResolutionException: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (repo.maven.apache.org/maven2): repo.maven.apache.org"

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

    Thanks naveen.

  • @jaganchandrababu7865
    @jaganchandrababu7865 Před 3 lety

    Thank you!........;-)

  • @manishkumarsah6898
    @manishkumarsah6898 Před 3 lety

    Awesome

  • @kalyanijoshi6884
    @kalyanijoshi6884 Před 6 lety +1

    Please let me know if there is any demo site for practicing automation for POM model

  • @vijayrampogu
    @vijayrampogu Před 5 lety

    Very good.

  • @deepikagupta7864
    @deepikagupta7864 Před 3 lety

    Hi Naveen,
    Could u please tell why u changed the scope of testng from test to compile?
    And ur videos are great.. Thanks for sharing ur knowledge..

  • @swethasankarapu8557
    @swethasankarapu8557 Před 5 lety

    Hi naveen,
    Am facing error when I keep compile n surefire plugins
    Error is:org. Apart he. Maven. Surefire. Tests etc. Tesrsetfaileedplugin.
    AnD when i go to command prompt to the project folder location and click on ls command..
    It is telling ls is not recognized as an Internal or external command

  • @shashanksharma8212
    @shashanksharma8212 Před 4 lety

    @Naveen Can you please tell me how to do a permanent set up for Maven on MAC, as I have installed and it works fine if I run source ~/.bash_profile command in the terminal every time but other it doesn't recognize the path if I open terminal and given command mvn -version

  • @sunnyvarun6652
    @sunnyvarun6652 Před 3 lety

    Hi Naveen,
    In POM.xml, can we have only surefire plugin instead of all the three plugins as Surefire plugin consists of the testNG.xml file path?

  • @vikasswami6417
    @vikasswami6417 Před 6 lety +1

    awsssome

  • @ishantsingh2235
    @ishantsingh2235 Před 6 lety +1

    After execution it shows build success.. but it is not displaying the print statements as displayed in yours. Please suggest..

  • @bijju1331
    @bijju1331 Před 6 lety +2

    hello Naveen,
    why testNG scope has to be compile ?

  • @meghasandesam
    @meghasandesam Před 3 lety

    thanks naveen...

  • @mayurkarnik310
    @mayurkarnik310 Před 6 lety +1

    Hi Naveen... I need your help regarding jira xray integration. Can u help me regarding how to integrate this with jira and execute it from jira or maven.

  • @bhaskarnaidu9967
    @bhaskarnaidu9967 Před 3 lety

    Good Exolination

  • @ramanwalia007
    @ramanwalia007 Před 5 lety

    Hi Naveen, one question.. Using eclipse we can easily make a maven project.. can u tell me then Do we still need to have maven in our system and set jn environment variable

  • @arun1993apr
    @arun1993apr Před 3 lety

    i'm getting error while doing in cmd prompt..when i'm skipping it is build success but if i changed to false it is showing error.. how to solve?

  • @gautamnitj
    @gautamnitj Před 4 lety

    Naveen Sir ... If I delete manually "project -> target -> XXX.jar" (which was created after "mvn clean install" ) and give "mvn test" still all TCs are executed. I didnt get what exactly this "mvn clean install" does ? which classes are included in the build ? "mvn test" uses which jar file to run TCs ? Thanks a lot

  • @pravinjadhav9749
    @pravinjadhav9749 Před 3 lety

    hi Naveen i Need Help
    when i run my testng.xml file all work fine but when i rum my pom.xml file it will run all test but Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project ExrentReport: There are test failures.
    surefire plugin is alredy added then also geting this error.
    i am using

  • @shalinirakesh3455
    @shalinirakesh3455 Před 4 lety

    Hi Naveen...how do i send the build number as parameter while running tests from command line?Also i want to use the build number entered in command line as a reference for my test cases. Like if i create a account in google it should have the build number in the account name so that anyone can understand the record was created by automation for a particular build

  • @A_philodendron
    @A_philodendron Před 4 lety

    One of the best vedio on Maven. But, instead of enclosing plugins info in pom.xml, can't we include class details in testng.xml file so that it execute all classes. Pls clarify.

  • @gopalsingsurse1102
    @gopalsingsurse1102 Před 5 lety

    Sir in my maven project after run as maven build and set goal as clean install i got mojofailureException pls tell me the reason and explain.....??

  • @gauravdharmale6994
    @gauravdharmale6994 Před 5 lety

    As i Pass ls command from command prompt there is a error that("'ls' is not recognized as an internal or external command,") can you please suggest the solution

  • @bibhumohanty2576
    @bibhumohanty2576 Před 5 lety

    Hi Naveen, Thanks for your support.I am finding this error.. No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

  • @saiful021107
    @saiful021107 Před 6 lety +1

    Thanks for your nice explanation, how would i get the all xml codes

  • @swethaylr7655
    @swethaylr7655 Před 3 lety

    Hi Naveen.. could you please explain the benefits of executing test cases through maven over testng.. as maven configuration is again hassle right. So, why do we need to opt for maven execution.. It would be helpful if you can clarify.. Thank you

  • @fariyal914
    @fariyal914 Před 3 lety

    hello naveen i am trying to work with maven but my pom.xml file showing the error for junit and in case i change the version of junit it will give error to whole project
    can you please help me out

  • @chittanayak30
    @chittanayak30 Před 5 lety

    hi I am getting these Errors while executing all 4 Test cases at a time Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project MavenDemoTest: There are test failures.

  • @astronautrocks
    @astronautrocks Před 5 lety +1

    Heyy Naveen! I would love to take your courses. Please do let me know where we can take your course

  • @kanikasharma8260
    @kanikasharma8260 Před 4 lety

    Hi Naveen, I am new to Maven and have a question regarding that, after running Maven project, it is displaying in console "No tests to run". However, It shows my build as success. I don't understand what I am missing. Please help.

  • @jakeg65
    @jakeg65 Před 4 lety

    Hello All,
    Maven sure fire plugin is not picking test any idea please
    Jdk 1.8
    Testng 6.9.8

  • @jesinthanithya1191
    @jesinthanithya1191 Před 5 lety

    HI,
    When i try to execute using Maven test i get the bellow error,
    Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project MavenNewProject: There are test failures.
    Anyone any solution??

  • @ghantaswathi8155
    @ghantaswathi8155 Před 4 lety

    Thanks alot .. namasthe

  • @dineshvelayudham3423
    @dineshvelayudham3423 Před 4 lety

    Hi Naveen, I have followed the video. Everything working as expected but when i RClick on the .java file Run as TestNG is not showing...

  • @dhavanbrk2456
    @dhavanbrk2456 Před 5 lety

    Hi brother.. When i am trying to run the clean install command in command prompt, getting Build Failure error.. What should i do?