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 👍
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
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.
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.
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 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 RUclips Channel. Thank you once again. Keep sharing knowledge with us with your fantastic teaching skills :) Eagerly excited for upcoming videos too :)
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! :)
@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
First of all thanks very much for the detailed explanation.. I am not sure for so many years why i did not saw your channel.. 1 question :- when we skip test cases… will that code gets compiled atleast if not run ?
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.
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 ?
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.
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 , Most of the places Resources is the first phase of Maven Life Cycle ... then Compile and Test ..But as per video it looks recourse is last phase please clear the doubt ....
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!!
Hi Naveen sir, Thanks a Ton for this your useful video. The interviewer asked me what is settings.xml file in maven. Do testng.xml and settings.xml serve the same purpose? It would be great if you reply the answer to this comment. Thanks in advance
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
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
Hi Naveen, Thanks for this video. I wanna ask you one help here... "Is it possible to share the pom.xml between two maven-projects?" (i.e) I have two maven projects p1 and p2, and i want to use the methods(test cases of p1) inside my new project that is p2... How to do this? Its like reusing the test cases... Is there a way, any specific dependency need to be added in pom or some special configurations need to be done???
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.
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?
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
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
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
Could you please show us how to execute all 12 test cases without using the TestNG framework. Like if I am using a Data-Driven Framework or Keyword driven framework, how can I execute all test cases from different .java classes?
Naveen Sir, I am facing this issue, The goal you specified requires a project to execute but there is no POM in this directory (/Users/vasundhrasharma). Please verify you invoked Maven from the correct directory. -> [Help 1] Please help !!!!
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
you said maven has these life cycle compile test resource or generate jar file.. i read this on another site.. Maven has the following three standard lifecycles − clean default(or build) site plz explain ?
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
@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, 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 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.
Hi naveen.Good job.Thanks for sharing. please clear my doubt.when i run the program using testNG, got the result.Same program when i tried to run using Maven test,it showing build success but no result is showing.Did i missed something??? SHOWING SOMETHING LIKE BELOW: Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
Class naming convention could be an issue. Make sure your class name should end with 'Test' e.g 'AppleTest' or 'Demo1Test' for maven surefireplugin to recognise.
Hi Naveer or other, Can you please help me here . When I have created Maven Project, I don;t see by defauly Maven Dependency and JRE System Libracy Packages are not shown up. Did I miss something ? Please please help me out. Thanks
Great Video. but need your help. I have done the same you shown here. when I ran maven test, it shows the build success but not picking up the test. I mean the test is not running. not showing any error either. could you please help?
Hiii Navin.. As i run Maven Test ,the build is successful..but on console there is no Output..?? And Many times It Shows the exception ("MAVEN/MojoFailureException")...Please Suggest the solution
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
The way explanation is very good sir
It's a crystal clear explanation and you are the best sir which I have seen in RUclips channels
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 👍
Lots of respect🙏
Today i have selected in an interview....its because of you
congrats!
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 🥰
I can't express in words of how grateful I am for your videos.
Super Video. much better than paid training. I highly recommend for selenium tester.
You are the true citizen of the country
Thank you so much Mr. Naveen for sharing videos with in 2 hours i learnt manven fully as i am a fresher.
Very nice session ...very nicely explained anyone who is new will understand it . thanks for sharing
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.
Refrain from saying 'OK' consistently 😃. Thanks for the video. It's very helpful and informative!
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.
Great explanation, simply awesome, thanks for all your efforts to make it more simple to understand 🙏
It's cool sir, your explanation washed-out all my doubts about maven... keep up the great work
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
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 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 RUclips Channel.
Thank you once again. Keep sharing knowledge with us with your fantastic teaching skills :)
Eagerly excited for upcoming videos too :)
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. 😂😂
mind blowing explanation... Huge topic explained well in a brief video.. great work..
Explained in such an easy way. Thanks a lot Naveen Sir.
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
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 u sir..great video ...keep uploading...and updating.... 🙏👍👌🙏
Thanks!
Your teaching is apple of our eye
Guruji..what an explanation.Thanks, brother
Awesome video on Maven. Thanks Naveen for sharing this.Very helpful.
Thank you Naveen for the detailed explanation, executing testng.xml file in pom.xml is very clear. Thanks for sharing your knowledge :)
Superb Explanation Naveen. Thanks a ton.
Just Awesome Naveen... :)
First of all thanks very much for the detailed explanation.. I am not sure for so many years why i did not saw your channel..
1 question :- when we skip test cases… will that code gets compiled atleast if not run ?
I tried this,, and noticed compilation happens for full project including tests even if you do mvn package -DskipTests
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.
Excellent tutorial..hats off Naveen
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 ?
Nice serieslly I'm addicted your vedios
..thanks alot..
Great video...very nice n clean explanation.Thanks
Thanks a lot Naveen . You helped demystify maven to me.
Thanks Naveen...Thanks for sharing your knowledge.
Thanks for providing the maven tutorial.
Great work Naveen. Thank you
Awesome Explanation... Keep up the great work 💐💐😍😍
+B Srinivas thanks :)
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.
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,
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 , Most of the places Resources is the first phase of Maven Life Cycle ... then Compile and Test ..But as per video it looks recourse is last phase please clear the doubt ....
very good explanation sir thank you so much
You are an inspiration. Thank you for explaining in detail. Keep rocking... :)
very very good explanation. thank you so much
Too good explanation.. thank u so much..
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!!
Hi Naveen sir,
Thanks a Ton for this your useful video. The interviewer asked me what is settings.xml file in maven. Do testng.xml and settings.xml serve the same purpose? It would be great if you reply the answer to this comment.
Thanks in advance
No, both are used for different purposes!
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
Very nice sir...
@naveen Surefire plugin also generates testng reports in target folder :)
Hi naveen, thanks for uploading such a great videos all the time.
where can i find your git url.
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
For paid course, there is only recorded video ? or any live teaching is done ?
Hi Naveen, Thanks for this video. I wanna ask you one help here... "Is it possible to share the pom.xml between two maven-projects?" (i.e) I have two maven projects p1 and p2, and i want to use the methods(test cases of p1) inside my new project that is p2... How to do this? Its like reusing the test cases... Is there a way, any specific dependency need to be added in pom or some special configurations need to be done???
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.
Excellent :) Thanks for sharing video :)
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?
hello Naveen,
why testNG scope has to be compile ?
Hello Naveen, please can you help me to understand or create a video on how to test a jar file which is generated via maven as shown in the video.
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
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
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
After execution it shows build success.. but it is not displaying the print statements as displayed in yours. Please suggest..
Could you please show us how to execute all 12 test cases without using the TestNG framework.
Like if I am using a Data-Driven Framework or Keyword driven framework, how can I execute all test cases from different .java classes?
very nice video!
Heyy Naveen! I would love to take your courses. Please do let me know where we can take your course
Please let me know if there is any demo site for practicing automation for POM model
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?
Really helpful.
Thank u
Naveen Sir, I am facing this issue, The goal you specified requires a project to execute but there is no POM in this directory (/Users/vasundhrasharma). Please verify you invoked Maven from the correct directory. -> [Help 1]
Please help !!!!
Thanks for your nice explanation, how would i get the all xml codes
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
Great explanation :)
Good Exolination
thanks naveen...
you said maven has these life cycle
compile
test
resource or generate jar file..
i read this on another site..
Maven has the following three standard lifecycles −
clean
default(or build)
site
plz explain ?
Thats the same thing.
@@naveenautomationlabs thnks for reply
Thanks for your knowledge
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
Thanks naveen.
@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, 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.
Dear sir,
Could you explain the concepts of Genericid, artifactid and version
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.
Hi naveen.Good job.Thanks for sharing.
please clear my doubt.when i run the program using testNG, got the result.Same program when i tried to run using Maven test,it showing build success but no result is showing.Did i missed something???
SHOWING SOMETHING LIKE BELOW:
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
Class naming convention could be an issue. Make sure your class name should end with 'Test' e.g 'AppleTest' or 'Demo1Test' for maven surefireplugin to recognise.
Hiii bro,thank you so much to share an most valuable Knowledge, how can i get your code ?
Hi Naveer or other, Can you please help me here . When I have created Maven Project, I don;t see by defauly Maven Dependency and JRE System Libracy Packages are not shown up. Did I miss something ? Please please help me out. Thanks
Thanks alot .. namasthe
Great Video. but need your help. I have done the same you shown here. when I ran maven test, it shows the build success but not picking up the test. I mean the test is not running. not showing any error either. could you please help?
Make skip test property as false if u have written it as true earlier.
Hiii Navin.. As i run Maven Test ,the build is successful..but on console there is no Output..?? And Many times It Shows the exception ("MAVEN/MojoFailureException")...Please Suggest the solution
How you are editing the Results under Console....please make it more clear.
Hi Naveen,
Can you please explain how to compile the code using Maven Eclipse.
Thanks
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
Are we using Eclipse Luna?
Amazing video
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...
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?