Learn Maven (Build Automation Tool) with TestNg and Selenium
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
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
I can't express in words of how grateful I am for your videos.
Lots of respect🙏
Today i have selected in an interview....its because of you
congrats!
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.
It's cool sir, your explanation washed-out all my doubts about maven... keep up the great work
Super Video. much better than paid training. I highly recommend for selenium tester.
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.
Thank you so much Mr. Naveen for sharing videos with in 2 hours i learnt manven fully as i am a fresher.
Explained in such an easy way. Thanks a lot Naveen Sir.
Great explanation, simply awesome, thanks for all your efforts to make it more simple to understand 🙏
Awesome video on Maven. Thanks Naveen for sharing this.Very helpful.
Your teaching is apple of our eye
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 :-)
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 :)
Hats off to you dude... you have made these things very easy !!! Thanks a ton!!!
@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
mind blowing explanation... Huge topic explained well in a brief video.. great work..
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..
Thank you Naveen for the detailed explanation, executing testng.xml file in pom.xml is very clear. Thanks for sharing your knowledge :)
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
many congratulations :)
@@naveenautomationlabs thank you 🥰
Thanks for providing the maven tutorial.
Thanks a lot Naveen . You helped demystify maven to me.
Superb Explanation Naveen. Thanks a ton.
Thanks Naveen...Thanks for sharing your knowledge.
Nice serieslly I'm addicted your vedios
..thanks alot..
Very nice session ...very nicely explained anyone who is new will understand it . thanks for sharing
Great work Naveen. Thank you
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 👍
Guruji..what an explanation.Thanks, brother
Great video...very nice n clean explanation.Thanks
Excellent tutorial..hats off Naveen
Thank u sir..great video ...keep uploading...and updating.... 🙏👍👌🙏
You are the true citizen of the country
Really helpful.
Thank u
Too good explanation.. thank u so much..
Awesome Explanation... Keep up the great work 💐💐😍😍
+B Srinivas thanks :)
You are an inspiration. Thank you for explaining in detail. Keep rocking... :)
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 ?
hi Navven..I really like in which way u r teaching. and most important thing u always try to cover all the topics
Thanks Shefali
Just Awesome Naveen... :)
Excellent :) Thanks for sharing video :)
Thanks for your knowledge
very very good explanation. thank you so much
Refrain from saying 'OK' consistently 😃. Thanks for the video. It's very helpful and informative!
Great explanation :)
very good explanation sir thank you so much
Thanks Naveen :)
thanks a lot sir its really helpful to me ....
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.
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!!
very nice video!
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.
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
Thank you!
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
Thanks Sir.
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! :)
haha :)
I Don't think so @Mohammed
Haha,I also noticed same thing @ 4:12. Funny though. 😂😂
Very nice sir...
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.
Amazing video
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
This is Awesome
+Shobhit thanks:)
Hi naveen, thanks for uploading such a great videos all the time.
where can i find your git url.
Thanks!
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
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"
Thanks naveen.
Thank you!........;-)
Awesome
Please let me know if there is any demo site for practicing automation for POM model
Very good.
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..
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
@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
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?
awsssome
After execution it shows build success.. but it is not displaying the print statements as displayed in yours. Please suggest..
hello Naveen,
why testNG scope has to be compile ?
thanks naveen...
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.
Good Exolination
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
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?
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
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
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
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.
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.....??
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
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?
Thanks for your nice explanation, how would i get the all xml codes
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
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
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.
Heyy Naveen! I would love to take your courses. Please do let me know where we can take your course
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.
Hello All,
Maven sure fire plugin is not picking test any idea please
Jdk 1.8
Testng 6.9.8
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??
Thanks alot .. namasthe
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...
Hi brother.. When i am trying to run the clean install command in command prompt, getting Build Failure error.. What should i do?