Hi Naveen, i am using mac for my learning. Problem is i am unable to add a TestNG library in latest Eclipse IDE (4.12) . Is it true that latest eclipse is not able to support TestNG plug-in ? Description Resource Path Location Type Invalid classpath container: 'TestNG' in project 'LearningSelenium' LearningSelenium Build path Build Path Problem
Hi Naveen , It was very informative video and I am thankful for the same. Just one correction I wish to add here that I have observed in TestNG execution when there are multiple test cases written (without mentioning priority) then execution happens according to alpha-numerical manner of class name ( and not random as mentioned in video). Hope this helps whoever is reading the comment.
This video is very thorough, I was looking all over the Internet for tutorials with clear voice, clear explanations, the speed that will match my typing speed etc., and this is the one. I can just type the code along with you as you narrate. Thank you.
From my heart, i am very much thankful to you. Really a person who can explain simply and effectively, god bless you with all knowledge .I believe that if strong skill knowledge then we can sustain in these competitive world.I strongly believe that if you share knowledge ,it will help to eradicate poverty and we can see towards enlightened.
Hi Naveen your way of teaching is excellent, i have gone through your videos for the first time today. i am impressed.. it was good KT(Knowledge transfer) taken from you for the day.... Appreciate all your efforts , patience and hard work.. keep it up.....
Thanks Naveen for the awesome tutorial, You are definitely doing a great job...!! One thing from the above video I have a point to share i.e. If we don't write priorities in the Test Annotations they execute it alphabetically, not randomly. Correct me If I have a wrong understanding.
One small thing . The order of execution of tests will be dependent on the alphabetical order of the methods , if no priority / dependency is specified
@Naveen At 1:00:30 you said when someone will run the testng test without providing the priority, it will run randomly which is incorrect. It will not run randomly, instead, it will sort the test methods alphabetically and then it will execute the test methods.
Yes it's already mentioned in my first comment of the video. It was mentioned incorrectly by me. In later videos of my testng I have corrected it. Thnx for mentioning :)
Hi Naveen...It's very nice and i would like to tell u one thing that in TestNG, the test cases will be executed based on the ALPHABETICAL ORDER of the test method names but not randomly... In the above example which u have explained the test cases got executed based on the alphabetical order....Thank you and nice work
Thank you so much for this clear explanation. Your explanation really eases the complexity that minds perceptually have about TestNG. Your step by Step briefing Framework is simply the best.
I cannot thank enough how helpful your videos are for me as a automation beginner. I don’t knw what i would have done without your channel. Such a detailed explanation of everything from a to z. Are u located in US naveen?
Hi Naveen, Your sessions are very simple and informative. I would like to share one of my understanding here- @Test methods are picked based on alphabetical order of the test method name if priority keywords are not provided and not randomly.
@Naveen : At time 39:01 you said that if the annotation is @Test for 3 test cases it will pick them up randomly. Correction it will execute in the alphabetical order of the method name as the default priority set for them is 0.
Thank you for sharing your insight on selenium. Selenium looks easy after watching your videos. Your explanation is very layman's perspective especially java topics. Looking for more such videos in coming days. Really appreciate if you can cover framework explanation with sample projects. Thank you once again!
Hi Rajeev, Hybrid + Page Object Model Framework have been uploaded now. Please refer this playlist: ua-cam.com/play/PLFGoYjJG_fqq6cHeqfsDes3pdVh3kpl74.html
Hi All, First of all, Thanks sir for making such amazing video tutorials. Secondly, Below is the latest replacement for Deprecated Implicitly wait and pageLoadTimeout Code. Hope it will work: driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(40)); driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30)); Thanks and Regards, Jatin Khanna
The video is awesome and very informative. I can have a clear idea about the sequence of the annotation in TestNG framework. Thank you so much Naveen 😊
As you told if we don't mention priority then testng pick randomly any test case and execute it.. But I read somewhere if we don't mention priority then by default base on alphabetical order test cases execute.. So please clear this confusion which one is Right??
Naveen, great video on selenium tutorial but sorry to say that one thing is explained wrong here, @test is not picked randomly, it gets executed alphabetically if priority is not set.
very nice video and explanation, thank you for providing these kind of information its very helpful. i want to add a point here @Test are executed according to alphabetical order.
Hello Naveen, You told in this video that if priority is not defined then it will pick the test cases random. However, When I read about it, I found that it runs in alphabetical order (method name).
But there is a doubt in my program one test is depend on previous. so i used depend tag in front of @test.. but i dont want to launch the browser for this method. means i want to run previous method then my dependent method in the same window. plz help what to do in this situation.
The official site of TestNG mentions- "TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc...".. is it correct to say it is unit testing framework?
Hello sir I appreciate you for sharing such nice tutorials. I have a question about this video at 33 mins when you are explaining the order in which the annotations will be executed. My question is why is the “login to app” being executed before “entering the url”. Is that part to be corrected like the way you switched “launch the browser” with ‘’login to app’’ earlier in the video? Will appreciate your reply if you get a chance or any other viewers please comment here to help me get clarity. Thanks.
I had the anticipation that after rearranging the annotations would look like the following @beforesuite - set up system property @beforetest - launch browser @beforeclass - enterurl @beforemethod - login @test - test title @aftermethod - logout @afterclass - deleteallcookies @aftertest - closebrowser @aftersuite - generate report
Excellent Explained but it will not pick randomly it will pick according to the alphabetic Order wise test will execute if u r not define the priority.
Hi Naveen, your videos are so good, I like the way you explain, I had one doubt, I'm using chromedriver 94 as my chrome version is 94 + , but when browser is launched that time by default settings window is opening, can u please suggest what to do in this case.
Hi Naveen,i love your tutorials.They have helped me a ton to learn,But now i want to implement my knowledge.Let me know some demo sites.Please.Waiting for your reply.
Hey you use the double -- as well! I use this all the time. My local filesystem is full with files notated as _date-__-area--desc.-_- I also use it extensively in my git commands. My commit msgs are always structured as : "08162020 -- '''/smallestAffectedScope/ -- Description of changes;" And my branches are almost the same : Date--class--name e.g. 08162020--feature--add-new-permission. Enough rambling. I am just happy to see that I am not alone...
Hello Naveen, I am using a maven project and testng framework. Here I have created 2 classes, First class is for Login on the web application [containing different methods/testcases] and second class is for After Login -> Home page[containing different methods/testcases]. So my question is, do I need to launch browser in each class? because I have declared driver as global variable in second class but getting this error: ===============java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null============== Due to above error I am not able to proceed. Please assist.
Hallo naveem, Please consider in upcoming Tutorials may be to increase the font in order to make it readable especially for small devices like smartphones... As orientation how that would look s like i would suggest the mosh hamedani Canal Nevertheless, thanks a lot for sharing your knowledge with us
Hi Naveen,In one of interviews I was asked ,if we do not use and excel and text file but we want to provide data to our test cases generating in script itself.How would you do.I remember I have seen it somewhere in your videos.Could you please suggest?
Hi Naveen, I am following your videos, Thanks for the clear explanation on all concepts. I have a question, When I run the program, I got an error "FAILED CONFIGURATION: @BeforeMethod SetUp" and test is failed, I found this when I write steps with the driver. If I just print any statement inside the annotation test is running successfully. Please suggest.
Just a small note :We need to Change : WebDriver driver = new ChromeDriver(); To : driver = new ChromeDriver(); , so @AfterMethod ,NullPointerException wont arise. Thanks.
Hi, Naveen. While executing my test class in eclipse, using TestNg so getting an error as "Can not write result as there is no active result writer attached to this". Can you please look into it and provide any workaround so I can handle it. Thanks
Hi Naveen, This video is very very informative .Even though I have some years of exp in selenium I was able to learn some new things..I wanted to ask some doubt.In my office , When i created automation framework , I just used @BeforeTest and i have given assigned chrome driver and given its path, launchign browser etc in @beforetest.But here i understand that you have splited into different annotation for launching the browser, setting the path and assigning driver etc.So my question here is , is it mandatory to assign each step in its respective annotation? like before suite, before test, before class like that.What I have done is wrong? Please guide.Thanks
~~~~~~~~~~~~In this video, just a correction: test cases will be executed as per alphabetic order not random order. ~~~~~~~~~~~~~~~~~~~~~~
Hi Naveen, i am using mac for my learning. Problem is i am unable to add a TestNG library in latest Eclipse IDE (4.12) . Is it true that latest eclipse is not able to support TestNG plug-in ?
Description Resource Path Location Type
Invalid classpath container: 'TestNG' in project 'LearningSelenium' LearningSelenium Build path Build Path Problem
no to overcome alphabetic order we can use "priorit
Exactly!!! This is what I wanted to Point out!! Cheer's!
@@nelakantilavanya remove TestNG libraries from project, re install software from help and try, hopefully it should work.
Hi Naveen,
Thanks for sharing this informative video. Could you please share me the URL u used to download the TestNG for eclipse here?
Thanks
Hi Naveen , It was very informative video and I am thankful for the same. Just one correction I wish to add here that I have observed in TestNG execution when there are multiple test cases written (without mentioning priority) then execution happens according to alpha-numerical manner of class name ( and not random as mentioned in video). Hope this helps whoever is reading the comment.
What do you mean by that, I though it was random?
yes .testNG will take alphabetic order only if we are not provide priority
This is my third training class - the quality of training I receive continues to be excellent.
Naveen, after visiting this i had crystal clear clarity on subject. Nice voice and nice explanation. Thank you very much
+Bhaskar B.V thanks Bhaskar
@@naveenautomationlabs Hi naveen you have uploaded videos on Selenium+Java
This video is very thorough, I was looking all over the Internet for tutorials with clear voice, clear explanations, the speed that will match my typing speed etc., and this is the one. I can just type the code along with you as you narrate. Thank you.
Glad it helped!
From my heart, i am very much thankful to you. Really a person who can explain simply and effectively, god bless you with all knowledge .I believe that if strong skill knowledge then we can sustain in these competitive world.I strongly believe that if you share knowledge ,it will help to eradicate poverty and we can see towards enlightened.
Having said that you have equally a big heart for they way you perceive life
perfect explanation to know how things work. I really love the way you explain things. Great job bro. Thanks a lot
Hi Naveen your way of teaching is excellent, i have gone through your videos for the first time today. i am impressed.. it was good KT(Knowledge transfer) taken from you for the day.... Appreciate all your efforts , patience and hard work.. keep it up.....
Thanks Naveen for the awesome tutorial, You are definitely doing a great job...!!
One thing from the above video I have a point to share i.e. If we don't write priorities in the Test Annotations they execute it alphabetically, not randomly. Correct me If I have a wrong understanding.
It will execute alphabetically according to method name.
Yes you are right
man u r such a lifesaver. these Videos are necessary
That was a good session , i am new to testng , now i can understand much better .
thanks Naveen
U made life so easy by explaining in such a simple way .. loved way of explaining 👍thank u for making these videos ., it’s so helpful
Thanks for watching :)
Very helpful series thanks for the the clear explanation and covering all questions u r amazing 👍🏼👍🏼
This is the best video of learning TestNG which I ever see. Thanks a lot Naveen for your hard work.😊
One small thing . The order of execution of tests will be dependent on the alphabetical order of the methods , if no priority / dependency is specified
right....
Hi Naveen.., The way your explaining TestNG Frame Work its too good and Thanks
Learning in 2022 ☺️ thanks for the wonderful tutorial video sir
@Naveen
At 1:00:30 you said when someone will run the testng test without providing the priority, it will run randomly which is incorrect.
It will not run randomly, instead, it will sort the test methods alphabetically and then it will execute the test methods.
Yes it's already mentioned in my first comment of the video. It was mentioned incorrectly by me. In later videos of my testng I have corrected it. Thnx for mentioning :)
@@naveenautomationlabs Oh ! sorry Naveen it's my bad. I just saw.
But thanks a lot for all your playlists and especially for Collections.
Hi Naveen...It's very nice and i would like to tell u one thing that in TestNG, the test cases will be executed based on the ALPHABETICAL ORDER of the test method names but not randomly... In the above example which u have explained the test cases got executed based on the alphabetical order....Thank you and nice work
thanks for highlighting this.
Yes u r absolutely correct . It is executed based on Ablhabecical order . Thanks naveen
Thank you so much Naveen. I could easily understand the concepts with crystal clear explanation.
Thank you so much for this clear explanation. Your explanation really eases the complexity that minds perceptually have about TestNG. Your step by Step briefing Framework is simply the best.
I cannot thank enough how helpful your videos are for me as a automation beginner. I don’t knw what i would have done without your channel. Such a detailed explanation of everything from a to z. Are u located in US naveen?
Thanks for watching. I'm here in Bangalore. Mail me at naveenanimation20@gmail.com in case of any queries.
Naveen AutomationLabs : okay sure thanks naveen
Thanks Naveen! I just fixed it from your lecture. Thanks for giving information.
This series help me alot for learning automation testing
Hi Naveen, Your sessions are very simple and informative. I would like to share one of my understanding here- @Test methods are picked based on alphabetical order of the test method name if priority keywords are not provided and not randomly.
@Naveen : At time 39:01 you said that if the annotation is @Test for 3 test cases it will pick them up randomly. Correction it will execute in the alphabetical order of the method name as the default priority set for them is 0.
Thank you, Naveen !! It is a very clear and good teaching skill, I learn a lot from this video.
Hi Naveen, My sincere thanks for this detailed and clear concepts. Thank you so much once again.
Excellent explanation and clarity .Thank you so much Naveen...
tutorial quality is awesome very very optimistic great
Great Explanation Sir.. Thank you Very very much for helping us in learning Automation.
Brother .. spoke nicely and explained well. Thanks a lot ..please do more videos.
Thank you @naveen , you explained very deep and i was looking all the video but this video gave clear explanation that i needed thankuuu so much
Thank you so much... all your videos are well explained. i am so happy i have found your channel
Naveen your way of explanation is awesome.you are genius sir
Thank you for sharing your insight on selenium. Selenium looks easy after watching your videos. Your explanation is very layman's perspective especially java topics. Looking for more such videos in coming days. Really appreciate if you can cover framework explanation with sample projects. Thank you once again!
+Rajeev V thanks Rajeev! I'm currently working upon vidoes upon framework designing. Will be uploaded soon.
Hi Rajeev, Hybrid + Page Object Model Framework have been uploaded now. Please refer this playlist: ua-cam.com/play/PLFGoYjJG_fqq6cHeqfsDes3pdVh3kpl74.html
Mr. Naveen method number 3 and 4 should be switched cause url should be executed before login.
but other than that, outstanding job sir.
Great explanation this is printed in my subconscious mind.
Hi All,
First of all, Thanks sir for making such amazing video tutorials.
Secondly,
Below is the latest replacement for Deprecated Implicitly wait and pageLoadTimeout Code. Hope it will work:
driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(40));
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30));
Thanks and Regards,
Jatin Khanna
Thank you Naveen...very clear and superb teaching.
Naveen , great explanation !! I would like to add one thing here , if we don't add priority , test cases run in alphabetical order.
Excellent Tutorial, Thank you so much Naveen!!
Hello sir! Thank you so much. You have come up with great explanation in all the videos.
The video is awesome and very informative. I can have a clear idea about the sequence of the annotation in TestNG framework. Thank you so much Naveen 😊
Swagatika Das thanks for watching:)
As you told if we don't mention priority then testng pick randomly any test case and execute it.. But I read somewhere if we don't mention priority then by default base on alphabetical order test cases execute.. So please clear this confusion which one is Right??
Naveen, you are doing great job.... Thanks for your effort.:)
Thank You SIR FOR SUCH A WONDERFUL EXPLANATION
Naveen, great video on selenium tutorial but sorry to say that one thing is explained wrong here, @test is not picked randomly, it gets executed alphabetically if priority is not set.
yes, i was going to mention the same... this is a minor mistake in otherwise a nice video ..
Yes
Please correct this. If not some one blindly follows
very nice video and explanation, thank you for providing these kind of information its very helpful.
i want to add a point here @Test are executed according to alphabetical order.
Yes it was already corrected and mentioned in pinned comment. Thanks
Hello Naveen, You told in this video that if priority is not defined then it will pick the test cases random. However, When I read about it, I found that it runs in alphabetical order (method name).
i clearly understand concept of testNG thank you so much sir
No words are enough to express gratitude
But there is a doubt in my program one test is depend on previous. so i used depend tag in front of @test.. but i dont want to launch the browser for this method. means i want to run previous method then my dependent method in the same window. plz help what to do in this situation.
The official site of TestNG mentions- "TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration, etc...".. is it correct to say it is unit testing framework?
Thanka for ur hard work and uploading the videos for the people,. Rey excellent Subject and extradinory explanation
What are your views on Robot Framework, it is more easier as its keywords based.
Hello sir I appreciate you for sharing such nice tutorials.
I have a question about this video at 33 mins when you are explaining the order in which the annotations will be executed. My question is why is the “login to app” being executed before “entering the url”. Is that part to be corrected like the way you switched “launch the browser” with ‘’login to app’’ earlier in the video? Will appreciate your reply if you get a chance or any other viewers please comment here to help me get clarity. Thanks.
Also I was thinking how will the cookies be deleted if the browser is being closed before that?
I had the anticipation that after rearranging the annotations would look like the following
@beforesuite - set up system property
@beforetest - launch browser
@beforeclass - enterurl
@beforemethod - login
@test - test title
@aftermethod - logout
@afterclass - deleteallcookies
@aftertest - closebrowser
@aftersuite - generate report
Awesome tutorials, very helpful for beginners. Thank you so much for the efforts!
Thanks for watching! Keep Learning and Keep Sharing!
Your voice is so good love to watch ur videos :)
+Pooja Pawar thanks for watching pooja
Hi Naveen, Test NG can also be used for REST API test? and to test ASP .Net Web application ? Pls Guide
Thank you, sir Excellent tutorial !!!
Glad it was helpful!
Excellent teaching. It's really helpful 👍👍
Excellent Explained but it will not pick randomly it will pick according to the alphabetic Order wise test will execute if u r not define the priority.
Hi Naveen, your videos are so good, I like the way you explain, I had one doubt, I'm using chromedriver 94 as my chrome version is 94 + , but when browser is launched that time by default settings window is opening, can u please suggest what to do in this case.
Hi Naveen,i love your tutorials.They have helped me a ton to learn,But now i want to implement my knowledge.Let me know some demo sites.Please.Waiting for your reply.
classic.crmpro.com/index.html
Hey Naveen! Did you take online classes to teach selenium and these tools?
Hey you use the double -- as well! I use this all the time. My local filesystem is full with files notated as _date-__-area--desc.-_- I also use it extensively in my git commands. My commit msgs are always structured as : "08162020 -- '''/smallestAffectedScope/ -- Description of changes;"
And my branches are almost the same : Date--class--name e.g. 08162020--feature--add-new-permission.
Enough rambling. I am just happy to see that I am not alone...
Evidently markdown uses it as well! That makes 3.... woo...
Hello Naveen, I am using a maven project and testng framework. Here I have created 2 classes, First class is for Login on the web application [containing different methods/testcases] and second class is for After Login -> Home page[containing different methods/testcases]. So my question is, do I need to launch browser in each class? because I have declared driver as global variable in second class but getting this error: ===============java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.findElement(org.openqa.selenium.By)" because "this.driver" is null============== Due to above error I am not able to proceed. Please assist.
Kindly upload your all video sequence wise according to topic in playlist box, so that it's lokk easily to find by anyone.
Thanks
Hi, Naveen why don`t you use "import org.testng.annotations.*;" insted of adding annotation one by one
Hallo naveem,
Please consider in upcoming Tutorials may be to increase the font in order to make it readable especially for small devices like smartphones...
As orientation how that would look s like i would suggest the mosh hamedani Canal
Nevertheless, thanks a lot for sharing your knowledge with us
Naveen Sir you are awsome thanks for the info..
Can a annotation be linked to only one method? Since when there are multiple pre-conditions /post-conditions how to handle that?
Amazing explanation Naveen sir. Thank you so much for this tutorial i really like it
HI Naveen, I am not able to see run as testng option in my program. Can you please help me what could be the problem
Thank you so much, Naveen for your help. These videos are very helpful..:)
Hi Naveen,In one of interviews I was asked ,if we do not use and excel and text file but we want to provide data to our test cases generating in script itself.How would you do.I remember I have seen it somewhere in your videos.Could you please suggest?
Please try zooming in on your screen for next time. Good topic coverage.
Hi Naveen,
I am following your videos, Thanks for the clear explanation on all concepts. I have a question, When I run the program, I got an error "FAILED CONFIGURATION: @BeforeMethod SetUp" and test is failed, I found this when I write steps with the driver. If I just print any statement inside the annotation test is running successfully. Please suggest.
Just a small note :We need to Change : WebDriver driver = new ChromeDriver();
To : driver = new ChromeDriver(); , so @AfterMethod ,NullPointerException wont arise. Thanks.
Thank you so much bro ! This is what I was looking for
Thank you! I was breaking my head on this
Hi Naveen. I have a question. In what order Data Provider annotation executes in testng?
Dhanyawad !!! Mr. Naveen!!!
Hi Naveen, Why I can't install testNG on eclipse oxygen or newer version?
one small thing sir you ve told it will execute test cases randomly....it doesnt execute randomly it executes alphabetically.:)
Hi, Naveen.
While executing my test class in eclipse, using TestNg so getting an error as "Can not write result as there is no active result writer attached to this".
Can you please look into it and provide any workaround so I can handle it.
Thanks
Was just wondering -
Why do we have to open and close the browser multiple times when all the three tests can be performed together in one go?
I'm not able to install TestNG from the given url directly in eclipse. what's the problem naveen.
Sir NIce explanation ,
Hi sir, is there any upcoming batch . I want to join for java with rest assured.
can you tell which playlists we have follow one by one
Great content and easy explanation great👍🏻
Sir , Do u have any hard copy for ur tutorials ?
Hi Naveen, This video is very very informative .Even though I have some years of exp in selenium I was able to learn some new things..I wanted to ask some doubt.In my office , When i created automation framework , I just used @BeforeTest and i have given assigned chrome driver and given its path, launchign browser etc in @beforetest.But here i understand that you have splited into different annotation for launching the browser, setting the path and assigning driver etc.So my question here is , is it mandatory to assign each step in its respective annotation? like before suite, before test, before class like that.What I have done is wrong?
Please guide.Thanks
what you had done is not wrong per se, but how you use the annotations are based on your requirements.
Excellent videos, thanks a lot
I want learn under selenium session classes you made please provide me the play list of your channel so i learn those topics as well
thank you Naveen for all the tutorials , really helpful !!
You are amazing. Thank you so much the upload.
My pleasure!
@naveenautomationlabs can you upload video that inform about hibernate with TestNG
I am not a developer , but a tester .. is this framework applicable to me as well ?
Good Explanation. Thank you!