I have gonn throgh many learning portals/videos, They teach unwanted stuff and waste our time, because we do not even use it in real time, your all videos are very effective, if any1 want to learn some technology in less time your tutorials are the best, it helped me alot. Thanks!!
@guru-prasad76295 жыл бұрын
naveen, we can not see this vedio clearly.
@naveenautomationlabs5 жыл бұрын
Change your quality setting to 1080 hd
@100karinecordeiro3 жыл бұрын
All KZbin channels to learn automation testing all are very useful! All of their deserve great wishes because anyone took their time for sharing their knowledge with us. I'm so grateful!
@ronin-RTW2 жыл бұрын
@@naveenautomationlabs this was a savage reply btw
@gchandu7 Жыл бұрын
Aax
@MyzticBean3 жыл бұрын
Timestamps 6:33 TestNG Execution Report 10:47 Defining Groups 16:46 Defining test dependency using dependsOnMethods 26:01 invocationCount 29:16 invocationTimeOut 35:35 expectedExceptions 40:03 Assertion 50:13 Execution using TestNG XML template file
@gayathrivr4 жыл бұрын
Being a beginner I have completed an entire real time automation project successfully with the help of Naveen AutomationLabs. Thank you so much.
@tommcelman5 жыл бұрын
As others have said, I've gone through countless tutorials on this subject and this is the first one where the lights turned on and I was fully engaged. Thank you so much for sharing this content and demystifying test automation for me!
@rashnaengineer8475 жыл бұрын
Normally while watching a video I feel disinterested and focus is lost. In your video I feel 100% engaged and have learnt alot. Thanks for your good work
@kirannikam46955 жыл бұрын
True....
@MuhammadAhmad-by2rr4 жыл бұрын
Brother you have amazing teaching skills. You explain everything in a very simple manner. I don't think that there's an other way to explain more simple than the way you explain. Much appreciate.
@vivek2542583 жыл бұрын
Thanks for the video...I can easily understand the concepts of the TestNG. Compared with other youtube channels your way of explaining is too good.
@jashmiakepati71544 жыл бұрын
I took some paid course didn't understand that much like your videos, after your classes pretty much clear, thanks a lot for your all efforts. I didn't know before otherwise would join here before itself. once again Thanks a lot.........................
@Rahul-ff7nw5 жыл бұрын
Very thankful to you for providing such a good lectures on Selenium. Each lecture is so clear and very well elaborated. thanks and keep up the good work.
@naveenautomationlabs5 жыл бұрын
Thanks for watching Rahul
@Vihaan_Nigam164 жыл бұрын
Thanks, Naveen !! I just started Selenium and TestNg ...and within one video feel confident that I can work.
@kaustubkatte54832 жыл бұрын
Naveen Appreciate your help in sharing knowledge here.. Its valuable and I am able to follow easily.. its very clear. I tried other blogs and videos ut nothing really worked .. Your videos are clear are informative and helps in understanding easly. Tank You.
@omkarpotdar27632 жыл бұрын
Thanks a lot Naveen for explaining TestNG framework in very easy language. The concepts which you learn are extremely valuable in terms of interview and project perspective. Keep it up Naveen.
@omerakber96493 жыл бұрын
Very informative tutorial of TestNG , i have gone through part 1 as well. and you completely explained all of it. Thanks a lot.
@jinalshah70233 жыл бұрын
It is really very helpful for me Sir, the way you teach each and everytime. Thankful to You. All our success credit goes to You.Thank You
@rajeshchilkamari51715 жыл бұрын
Thanks a lot for detailed explanation for each and every topic. You are a great teacher. Thanks again!!
@rakeshjaiswal46754 жыл бұрын
50:20 How To Create TestNG XML File And Execute TestNG.XML File
@sathishsam89283 жыл бұрын
first fall thanku naveen i am preparaing interview but i did not understand TestNg iam watch youre videos clearly understand.....
@Jesraja5 жыл бұрын
Naveen, Nice videos on TestNG. This makes me closer to TestNG concepts. Thanks a lot!!!
@97542895045 жыл бұрын
Its been too helpful Naveen.Looking for such type of videos from so long..Great Efforts
@Maharashtra-wn1ff4 жыл бұрын
Thanks Naveen. The way you teach its very simple and effective
@sdetbyraviteja568 Жыл бұрын
Excellent tutorial in recent times as i visited
@prasannaprasy9505 жыл бұрын
great teaching !! blessed to find ur channel..god bless naveen!!😊
@raghuram83276 жыл бұрын
Thanks Naveen It's great help to get a job
@sureshisoft45555 жыл бұрын
Your are video are very clear and understandable...your effort is much appreciated..navin..thanks for ur videos
@lovlywilson12676 жыл бұрын
Thanks Naveen for the detailed tutorial on TestNG framework .
@Digital_Diary_Exclusives6 жыл бұрын
Thanks Naveen for your work. Really liked the tutorials in this series obviously because they are helpful. :)
@prosperg1864 жыл бұрын
thank you very much on your commitment on doing these videos and explaining things extremely well. well done! thank you.
@chithraunnikrishnanp83806 жыл бұрын
Explained the concepts in a simple way...Thanks a lot..
@sachinmagdum4 жыл бұрын
Thanks for your good work. It's great stuff. I watched it 1.5x speed as I felt it's bit slow for me.
@apurvashete4 жыл бұрын
Thanks for creating this playlist. Very helpful.
@arpankush203 жыл бұрын
I think at around 34:30 the test did not keep running, instead, it stopped after 2 seconds as you mentioned. Although there was a delay between execution and the printing on the console, hence previously also you are able to see the console being printed even after stopping the execution. Anyways always blessed to view your videos.
@dhvaniljariwala92936 жыл бұрын
Hi Naveen and all, Naveen: Thank you for this much effort and superb content. @All, please help me in below scenario. 1. open flipkart and select any shoes. 2. hit on add to cart button (w/o selecting it's size) how can I handle this case? please do the needful.
@venkatjayakumar79107 жыл бұрын
Awesome Video, very well explained for a beginner . Thanks a lot!!
@zenny13595 жыл бұрын
Guys based of what @divya divya said, a better way to create the XML file is to do the following. Right click on the package holding all the classes and Package>TestNG>Convert to TestNG. Then fill the XML file name, suite name and test name. This might be a feature in Eclipse and so the manual way might be better to learn too. But if you are using Eclipse, this is the method and it does everything for you.
@MehadiHasanMozumder7 жыл бұрын
Awesome Naveen. Thanks man you cleared my concept on TestNG.. watched both of you videos. :):)
@divyadivya485 жыл бұрын
Instead of creating a sperate file we can go to class and click on convert to TestNG so that suite will automatically is any drawback if we create in such a way
@zenny13595 жыл бұрын
Yeah I have tested this and this seems to be a better way to do it. Thanks for the comment. I was actually getting an error when I had manually made it, but it worked perfectly when I did Package>TestNG>Convert to TestNG and filled in the XML file name, suite name and test name.
@bhoomisbuzz3 жыл бұрын
Awesome videos!!! Thank You..
@Vjiesh2 жыл бұрын
Thanks a lot for this. it was very helpful.
@koushikthelukala91024 жыл бұрын
Hi Naveen, Can we use all the keywords i.e. 'priority', 'group', 'dependsonMethod' & 'invocationcount' at a time in @Test annotation?
@akado56636 жыл бұрын
Hi Naveen, Thanks for the great video. As usual your explanation is excellent
@fitnessmodeldiet53503 жыл бұрын
Great explanation
@shajilnizar22845 жыл бұрын
Good explanation...very helpful ...thanks Naveen
@Star-vg7ix2 жыл бұрын
excellent video.
@nehamaggu37197 жыл бұрын
hello naveen..this is regarding depends on method anotation.what if we have 1000 test cases dependend on one basic test case so it wont be possible to provide this annotation for every test case.so is there any way i can make such tc as prequisite and if its pass then others will execute in somr other way.
@donsamratdon7 жыл бұрын
Naveen you are the Boss!!!
@nirmaladevare38323 жыл бұрын
Naveen you are very good explanation with real practice, sorry to say that but your uploaded video is not proper sequence, means many people want to search related information view in you tube.You are good in all the programing but people want to sequences of video. I also want to this sequence and my frnd also.
@naveenautomationlabs3 жыл бұрын
Everything is in proper sequence. You need to refer the playlist not the individual video.
@SaiPremS5 жыл бұрын
Great work Naveen..! Good explanation
@sruthibhagavatula24503 жыл бұрын
naveen instead of creating a testng.xml file manually we can select all the testcases --> right click -->TestNG--> Convert to TestNG by doing this we can directly create the testng.xml file right?
@nahimmobarak20085 жыл бұрын
Your lessons are amazing, learned a lot of things from here. Can you tell us where did you get the testng.xml template from(at 52:18) ? I couldn't get the template. Appreciate your help, Thank you.
@zenny13595 жыл бұрын
I've already commented this but a repeat. Guys based of what @divya divya said, a better way to create the XML file is to do the following. Right click on the package holding all the classes and Package>TestNG>Convert to TestNG. Then fill the XML file name, suite name and test name. This might be a feature in Eclipse and so the manual way might be better to learn too. But if you are using Eclipse, this is the method and it does everything for you.
@arshadmalik57046 жыл бұрын
Naveen I have one query that to generate report in testng do I need to set directory path or it default?
@vijaypundir55944 жыл бұрын
Thank you so much naveen sir ...!!
@amarbelkire5644 жыл бұрын
hi in real time scenarios we will use all annotations ? only before method,after method and test anotation
@rohitranjan73225 жыл бұрын
hi naven if i want to run different classes from different package then its ok to go with xml file but if i want to run may classes and in some class only specific methods only not all methods from that class? please clear my doubt.
@ArturBerkut4 жыл бұрын
HI, thank you. do you have some video about setup allure report ?
@MyWalia6 жыл бұрын
Hi Naveen, won't it be sufficient to just add the TestNG dependency in pom.xml, why we need to also install new software for TestNg...Please reply
@naveenautomationlabs6 жыл бұрын
For eclipse, we need to download separate testng plugin
@unoprasad6 жыл бұрын
You don't need separate plugin to install for eclipse when you already have added the dependency in pom.xml
@diksuchi77445 жыл бұрын
Can we execute use different set of data and execute the method using invocationcount?
@mahalasakini1915 Жыл бұрын
Naveen Sir, I have one question, Suppose we have 100 test data which needs to run in parallel and if test strucks in middle after executing say 50 testcases, how can do timeout in such scenarios and how can we unblock other test data execution
@amarrautrao88496 жыл бұрын
Hi Naveen, thanks for this tutorial. But just wanted to discuss one issue here, When we are running the Suite by using the testng.xml one class is not running. We have 6 classes but in reports we can see the output for only 5 classes. Can you please let us know why this is happening? GoogleTest class is not executed.
@dreamerpreethu53024 жыл бұрын
Is there any techniques to check weather the bug is present in the application or the bug is in the test script . Because in both the cases we get result as failure
@poojamahendra64096 жыл бұрын
Hi Naveen ...I have one question if there are 3 TestNG classes n each have some 5 test cases i.e @Test ...n I want to execute some specific test cases from the classes how we can do that?
@shikhar53006 жыл бұрын
pooja Mahendra yes you can ignore those test cases by writing @Test( priority =1, enabled=false) this will ignore thais method aur you can exclude that method by writing < exclude name= "method name"> in testng.xml file
@meenhaz934 жыл бұрын
Hi Naveen, thank you so much for for the helpful video. Won't it it be easier to right click project and just "convert to testng xml". It autofills all the classes you have in proper format instead of typing it, or copy pasting pre-existing code.
@yogsalunke72605 жыл бұрын
Hi Naveen, What if we want to execute only 2 or 3 test cases in a class not the entire test cases from the class? is there any way?
@vijaypundir55944 жыл бұрын
Great sir !!
@chillamcharlabharath97307 жыл бұрын
Thanks a lot Naveen.. Awesome!!
@tejkumarkempaiah49064 жыл бұрын
Naveen, Firstly: Thanks a lot for a wonderful videos, Secondly: Got a question, When I update the pom.xml to use newly created testng.xml which is placed in src/main/resources and same path being updated in src/main/resources/testng.xml, When I execute mvn -> test , The suite execute old testng.xml.. Need your help on this issue.
@kingpromo906 жыл бұрын
Hello Naveen, I created the test classes as per your tutorial followed by testNG.xml . But when I am running the testNG.xml as suite , then those methods are not getting executed which have (priority) keyword. Why is this problem happening and how can I solve it?
@poojapawar36657 жыл бұрын
invocationTimeOut attribute will be ignored if invocationCount is not specified that is why it was not working :)
@naveenautomationlabs7 жыл бұрын
:)
@organic_natural_living80756 жыл бұрын
So clear...thank you very much
@NM-ls4hk5 жыл бұрын
Hi Naveen, Thanks for the lectures. I have a doubt, when we use dependsonMethod keyword how the sequencing of test case is handled or still JVM picks any random test case which has dependencies. For example in class test1, test2, test3,test4 Are written in sequence now test2,3&4has dependency on test1, if test1 is passed which test case will be picked next. Also one more case - let’s consider the example you have explained- once login is done-homepage appears->registration form appears- >then search page appears. so all the pages have main dependency on login page but few of them also have dependency with previous step, so now my question is - can we have two dependsOnMethod for single test case or we should define the dependency in hierarchical manner - if loginTest passed then homePageTest (dependsOnMethod =“loginTest”) , registrationPageTest (dependsOnMethod =“homePageTest”) and likewise
@BENGHUMmer Жыл бұрын
For the first doubt , it can pick any test and test 2,3,4 will just check if Test1 is passed , so my suggestion is you can declare even this in your XML under test tag just give all the test names that you want in an order it will pick one by one. For the 2nd one hierarchical is the best option.
@narendrareddy22635 жыл бұрын
where did you take the suit name and test name which you have mentioned in .xml file. from where we take the name as "suit"name.
@yingluo53247 жыл бұрын
It seems that the test cases in "GoogleTest" class did not run when you ran TestNG Suite by using testng.xml file. It was not showing up in the report. I had the same issue after following your tutorial. Any idea why?
@swarali24586 жыл бұрын
hi naveen please explain why @Aftersuite doesn't get executed in testNG,what is difference between @BeforeSuite and @Aftersuite ?
@sehrishhassan53806 жыл бұрын
Could someone plz clarify. If I install TestNG plug-in for Eclipse...why do I still have to download and attach TestNG jar files to my project? Would it make sense to just attach the TestNG jar files and not get the TestNG plug-in if I don't want to. Would it still work?
@naveenautomationlabs6 жыл бұрын
If you want to run it as testng, then you need plugin. For maven and command line execution you need jars
@sehrishhassan53806 жыл бұрын
@@naveenautomationlabs oh I get it. Thanks Naveen
@shwetapulipati194 жыл бұрын
Can we give same priority number to multiple test, if yes in which they will order those tests will be executed and if no what error will be thrown?
@vaibhavladdha3406 жыл бұрын
Hi Naveen sir,can you please provide a real time scenario where invocationcount attribute can be used
@thiery5725 жыл бұрын
Very interesting. Thanks.
@naveenautomationlabs5 жыл бұрын
Thanks for watching :)
@rohitchoudhary55506 жыл бұрын
Hello Naveen , Currently I am using Eclipse Mars and in this I am able to add xml and execute it so can please help me out
@RohitSingh-br3xd5 жыл бұрын
HI Naveen, can we run all the classes without using testng.xml file?
@arupkumarpatra65606 жыл бұрын
let there are 3 test cases and if we give the priority only to one then when executing the priority cases first done then after that it will randomly execute the rest or what
@StockBuzz20216 жыл бұрын
Hi Naveen, I am getting error :- Cannot find class in classpath: Myproj.MavenProj.mvnmethod. can you please help me into it. i have tried every possible way.
@archanamuthukrishnan64653 жыл бұрын
Hello Naveen, I am new to Automation and now am trying to get some hands-on experience in Automation framework. I have installed latest version of Chromedriver, and it executed for first time, for second time got errors like,, "session could not start "," chrome not reachable '.can you please let me know what to do. stuck here...
@vijayjadhav73745 жыл бұрын
Hi Naveen, Can we provide the priority to classes in xml file? if yes, please explain it. thanks
@sivashankark21525 жыл бұрын
how to give priority, groups,invocationCount all in a single test i.e single method ?
@amritabharadwaj63494 жыл бұрын
Hi Naveen when I give Assert ,it gives an error like this Assert type is depricated.
@prashantnaik87425 жыл бұрын
Hi Naveen, When all the test cases are run using testng.xml file, then GoogleTest class is not executed. Even I tried at my end and found the same issue.
@anooppc76 жыл бұрын
Is there any way to resolve classpath not found exception in testNg.. I have verified my class paths and all the solution out there online..any thoughts?
@purnachandrapatra25527 жыл бұрын
@Naveen ...TestNg annotation like @BeforeSuite ,@BeforeTest ,@BeforeClass....where should we use as per recommend......... i mean ...in the test script file or in the xml file ....can you give one real time example..Thank you
@ahaana__jha3 жыл бұрын
Hi Naveen. Firstly, Thanks for such wonderful videos. Secondly, I got doubts -> 1. When we are using priority keyword, do we need to set priority for all @Test? 2. What happens when we set same priority for two different @Test? My Observations: 1. I used priority for only three @Test and for other three @Test I didn't use it. When I executed the program, tests without priority keyword were executed first and then tests with priority were executed on the basis of priority. 2. Also I set priority =1 for two tests and set priority=2 for one test and for remaining 3 I didn't use priority. Again the tests without priority got executed first and from the tests with priority =1, the test with first occurrence was executed first, then the second test with priority=1 was executed and then test with priority=2 was executed without any failures. Hope I am getting it right? Can you please clarify? :)
@BENGHUMmer Жыл бұрын
my suggestion is you can declare tests in your XML, under test tag just give all the test names that you want in an order it will pick one by one. = "1" = "2"
@leemamishra99016 жыл бұрын
Hi Naveen, How to identfy google logo by using cssselector.
@vibhakhandelwal28815 жыл бұрын
Hi Naveen .. I am badly stuck with testNG dependencies issue .. Can we have quick chat/conversation about it .. Will really appreciate if thats possible.
@naveenautomationlabs5 жыл бұрын
Mail me at naveenanimation20@gmail.com
@ADITYACOOL907 жыл бұрын
Can you explain how we can run test in parallel . And also if there are many test. java files and each is having many tests. How can we run just few from each files without using groups?
@naveenautomationlabs7 жыл бұрын
This is a good question. To run your test cases in parallel mode, you need to use "Thread-Count" attribute in testng.xml with Selenium GRID. This topic will be covered along with GRID configuration. >>To answer your 2nd question, if you want to run few test cases from different test java files, you need to use "enabled=true/false" property. Ex: ============================================================================= @Test(priority=1, enabled=true) public void test1(){ System.out.println("test1"); } @Test(priority=2,enabled=false) //This test case will be skipped/ignored public void test2(){ System.out.println("test2"); } @Test(priority=3,enabled=true) public void test3(){ System.out.println("test3"); } =============================================================================
@ADITYACOOL907 жыл бұрын
Alright.. Thanks for the swift reply. Can we run parallel tests without Threadcount? And for thread count do we need to right any specific code in our framework? And also if we have restriction to use enabled and groups both, can we run them in any other way?
@sarabjitsingh26396 жыл бұрын
how about commenting the @Test annotation?
@bhavyan40097 жыл бұрын
Could you please explain @Parameters and @Dataproviders as well...
@naveenautomationlabs7 жыл бұрын
Bhavya N check 3rd and 4th video of this playlist. TestNG Framework With Selenium Tutorials - By Naveen AutomationLabs: kzbin.info/aero/PLFGoYjJG_fqp25buwscrsKA5q8qsLsuUy
@bhavyan40097 жыл бұрын
Naveen AutomationLabs Thank you
@AnkitGupta-hz6ii4 жыл бұрын
Hi Naveen, I am not able to open maven project, it throws error of - unable to create project from archetype. Could you please help and suggest. Thanks
@nimrahussain77382 жыл бұрын
Thankyou sir
@uditmanerikar23556 жыл бұрын
Run as test suite option is not available on right clicking xml file. what i can i do plz help.
@mtest76545 жыл бұрын
Hi Udit , right click like class example( test.java) ==> then Go to TestNG ==>Click on Convert to TestNG. Then refresh your project(Right click on project ==> Refresh). You will see testng.xml file created under test-output folder , Now to execute this test , right click on testng.xml ==> Run as TestNG Suite , hope this help - thanks
@वृषालीहळदणकर6 жыл бұрын
Namaste Naveen, If i skip PRIORITY KEYWORD then all tests get runned..why is it so..?
@manaligupta10987 жыл бұрын
Ultimate
@PankajB....3 жыл бұрын
Can we email the generated report to our Manager? If Yes, How can we do this?
@sridevireddy13717 жыл бұрын
Thank you Naveen
@arunmuthukrishnan24885 жыл бұрын
am getting null pointer exception how to rectify it