Many of the times in Selenium, you need testng.xml file to execute my multiple test cases in one shot and in some cases you will not get an option to create xml from eclipse. Let's see how to create xml manually.
Hi Mukesh, I am trying to run multiple test cases by creating the testng.xml file for my classes. I am observing that I have 23 test methods to execute but only 13 are getting executed. I do not have any dependsonmethods. I have given priority level in all classes as 1,2,3 and so on. Could you suggest me why this is happening. below is my testng.xml
Hi Mukesh, Your videos on Selenium are really useful...I am learning a lot from all your videos...really appreciate your efforts... Really beneficial for all those users who are new to Selenium.... I would love to recommend to my friends. Keep posting new Selenium videos. All the best....keep it up.. :) Regards Praveen Gupta
Hi Mukesh, I am getting an issue as " org.testng.TestNGException: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target " when i am trying to run the xml file. could u plzz help in finding out that
Hello Mukesh, If I want to execute testng suite that has 1 test class for 200 times what is the easiest way ? I guess pasting test class 200 times inside suite is not best way. Any suggestion, please?
Hello Mukesh, the latest testng.xml file seems different. i can see that currently which is different from the one i used to use previously. please let me know whether it has been updated or something else?
Hi Mukesh Thank you very much much for this video. Actually I completed Java,and full selenium course and executed it from another tutorial before I came across yours. Finally I also started page object model and almost compled. Finally 2 things left 1. Running with testng.xml 2. Data driven frame work adding Excel reader This 2 things I was failed 2 to 3 times. I kept framework aside and wasted so much time without boosting. I tried creating so many testng.xml but when I tried run as testng it was not showing. I saw in ur video convert into testing.xmland converted automatically it showed and running at morning 4 am One more excel read also I did from yours.thanks
hi mukesh, can you help me to automate the gui structure of any web site or web application or even any app. if any tool available regarding this and its introduction. i want to use that with selenium webdriver (java) using eclipse. i hope you understand my question. your previous answer for me is really helpfull to create manual xml file with testNG thanks.
Hi sir I am getting issue whenever i run my test case it gives message as can not find class in classpath:packagename.classname Please help me to resolve this issue.
Hi Mukesh thanks for the Video Can you please tell me that is there any perquisites requires to install TestNg plugin in Eclipse ,I tried lot of times to install plugin via Marketplace and New Software Installation options but i am unable to install it .it throwing an error "Unable to find repository files " . any one can give me solution so that i can work with Testng . your reply would be highly appreciated. Thanks in advance.
Hi Mukesh this one is really good but i would suggest you make video that will include all the other annotations i.e groups , dependency on methods combined that would be really helpful and one question i have related to this when i include the methods of that particular class in xml it gives me error and when i remove the enclosing tag of the class , error is gone
Hi Mukesh!!! Can you please upload video tutorial of : "How to run testng.xml" file from command prompt?Also I would like to suggest you to add the link of the same step-by-step in your blog. It would be helpful for many people. Thanks in advance!!!
Hi Sidharth, This can be done in 2 ways. 1- For normal project you can follow below link learn-automation.com/execute-selenium-test-from-command-line/ 2- For Maven project you can first follow below link learn-automation.com/selenium-maven-build-and-usage/ and once you are done with above step then navigate till project home directory and then run mvn clean install
Thanks Mukesh!!! I was stuck at one point and was referring the wrong path of dependent jars in lib folder, but now the code is working fine.Also the detailed content in your blog is also good.Keep it up!!!
Hi Mukesh,, thanks a lot for sharing this video!!. Video is very useful for me. How can we terminate/abort the suite from execution if any condition fails in @BeforeSuite method.
Hi Mukesh, I require help frm you regarding an interview question I was being asked repeatedly.....How many test cases have u automated using Selenium for ur application? could you plz suggest me answer for this.
Hi Chennam How many test cases have u automated using Selenium for our application.. there is no fixed answer for this. Your answers should be like It depends on the application, the complexity of test, application availability and many more. For 1 year I would say 50-70 scripts and so on.
Hi Mukesh, this video is really helpful. but i have one doubt like .. i have many classes in a Package, i want to run all the classes at once using testng.xml sequentially . its executing but in the random order, sometimes its executing first and last only. do i need to modify any more or need to do something. your guidance would be appreciated . Thank You :)
Many of the times in Selenium, you need testng.xml file to execute my multiple test cases in one shot and in some cases you will not get an option to create xml from eclipse.
Let's see how to create xml manually.
Hi Mukesh,
I am trying to run multiple test cases by creating the testng.xml file for my classes. I am observing that I have 23 test methods to execute but only 13 are getting executed. I do not have any dependsonmethods. I have given priority level in all classes as 1,2,3 and so on.
Could you suggest me why this is happening. below is my testng.xml
Remove thread count buddy !
@mukesh, I thought this tutorial was about to create the XML file programatically, I confused with the title !
Mukesh!! You Rock!!! Keeping the content free is gonna make your videos popular. Thank you!
Hey, Avinash thanks :) so many videos in the pipeline will upload soon. Let me know if any help from my side.
This really helped. i was in search of creating the XML.. thanks a lot Mukesh... :)
+Nagalatha Ks Great Nagalatha.. Keep visiting :)
Hi Mukesh,
Your videos on Selenium are really useful...I am learning a lot from all your videos...really appreciate your efforts...
Really beneficial for all those users who are new to Selenium.... I would love to recommend to my friends.
Keep posting new Selenium videos. All the best....keep it up.. :)
Regards
Praveen Gupta
Thank you so much Praveen :) keep sharing and let me know if any help from my side.
Thank you Mukesh for this lecture on testng, it helped me a lot.
You are most welcome Bibhuti
Hi Mukesh,
It's really good and simple. Easy to understand..
i am not getting this option testng suite while running only configuration option i can see
Make sure testng plugin is installed
Yes
Hi Mukhesh,
Testng is visible for xml files. Iam getting only xsl transformation. Could you please help me on this
I get run as XSL transformation not testngsuite , is it okay ?
Test Data store in XML file how we used XML fiel insted of excel file.?
Hi Mukesh,
I am getting an issue as " org.testng.TestNGException: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target " when i am trying to run the xml file. could u plzz help in finding out that
Hi, Mukesh,
Its really good and thanks a lot for your great work!
Welcome Chandru keep visiting.
Hello Mukesh, If I want to execute testng suite that has 1 test class for 200 times what is the easiest way ? I guess pasting test class 200 times inside suite is not best way. Any suggestion, please?
Hi Sai, you can use Invocation count or DataProvider for this.
@@Mukeshotwani Isn't it Invocation count used at test method? I tried using at class level but it doesn't work.
Hi Mukesh, I am using TestNG with Android Studio can you please help me to get location of TestNG output files?
Hello Mukesh, the latest testng.xml file seems different. i can see that currently which is different from the one i used to use previously. please let me know whether it has been updated or something else?
Click on Source tab to get the code.
hello mukesh ! when i try to run xml file (using testng) it shows Run configurations... what to do ?
Hi Mukesh,
My test case says 'Cannot find the class in classpath' everytime I want to run a test cases.Can you please guide on how to solve the issue.
Hi Mukesh
Thank you very much much for this video.
Actually I completed Java,and full selenium course and executed it from another tutorial before I came across yours. Finally I also started page object model and almost compled. Finally 2 things left
1. Running with testng.xml
2. Data driven frame work adding Excel reader
This 2 things I was failed 2 to 3 times. I kept framework aside and wasted so much time without boosting.
I tried creating so many testng.xml but when I tried run as testng it was not showing. I saw in ur video convert into testing.xmland converted automatically it showed and running at morning 4 am
One more excel read also I did from yours.thanks
hi mukesh,
I'm getting an error: No embedded stylesheet instruction for file: file:/D/workspace/selenium/ testsunte.xml
please do needful.
Hi Raja, Kindly install testng plugin it will generate xml automatically learn-automation.com/how-to-install-testng-in-eclipse/
Mukesh otwani @Thank you for your kind response mukesh. But testng plugin is already installed in my system.
hi mukesh,
can you help me to automate the gui structure of any web site or web application or even any app.
if any tool available regarding this and its introduction.
i want to use that with selenium webdriver (java) using eclipse.
i hope you understand my question.
your previous answer for me is really helpfull to create manual xml file with testNG
thanks.
Thanks Mukesh for shairing this video.
+Chinmaya chittaranjan jena Thanks Chinmaya Happy weekend.
Thank you..I was able to understand very easily.
Thanks Vali :) I am glad you liked it.
Hi sir
I am getting issue whenever i run my test case it gives message as can not find class in classpath:packagename.classname
Please help me to resolve this issue.
Thanks Mukesh sir..its very helpful
+Babu Papugari Thanks Babu
Very Nice video Mukesh
Thanks Harsh.
Hi Mukesh thanks for the Video
Can you please tell me that is there any perquisites requires to install TestNg plugin in Eclipse ,I tried lot of times to install plugin via Marketplace and New Software Installation options but i am unable to install it .it throwing an error "Unable to find repository files " .
any one can give me solution so that i can work with Testng .
your reply would be highly appreciated.
Thanks in advance.
set the proxy and then try the same.
Hello Mukesh,
Can you tell me how to send the Test Ng report to all team members after fisnishing the test through mail.
Will be uploading tomorrow Ram.
Hi Mukesh
this one is really good
but i would suggest you make video that will include all the other annotations i.e groups , dependency on methods combined
that would be really helpful
and one question i have related to this
when i include the methods of that particular class in xml
it gives me error and when i remove the enclosing tag of the class , error is gone
+abishek kachroo Hi Abhishek I have some more videos on TestNg have a look
mukesh how should i get "test-output" folder..?
Just refresh the folder you will get.
kya apne manual testing ke videos create kiye hai.
Hi Mukesh!!!
Can you please upload video tutorial of : "How to run testng.xml" file from command prompt?Also I would like to suggest you to add the link of the same step-by-step in your blog.
It would be helpful for many people.
Thanks in advance!!!
Hi Sidharth,
This can be done in 2 ways.
1- For normal project you can follow below link
learn-automation.com/execute-selenium-test-from-command-line/
2- For Maven project you can first follow below link
learn-automation.com/selenium-maven-build-and-usage/
and once you are done with above step then navigate till project home directory and then run mvn clean install
Thanks Mukesh!!! I was stuck at one point and was referring the wrong path of dependent jars in lib folder, but now the code is working fine.Also the detailed content in your blog is also good.Keep it up!!!
Hi Mukesh,, thanks a lot for sharing this video!!.
Video is very useful for me. How can we terminate/abort the suite from execution if any condition fails in @BeforeSuite method.
+jitendra parate Ur most welcome.it will skip the rest if BeforeSuite failed..
Hi Mukesh, I require help frm you regarding an interview question I was being asked repeatedly.....How many test cases have u automated using Selenium for ur application? could you plz suggest me answer for this.
Hi Chennam How many test cases have u automated using Selenium for our application.. there is no fixed answer for this.
Your answers should be like It depends on the application, the complexity of test, application availability and many more.
For 1 year I would say 50-70 scripts and so on.
Hi Mukesh, this video is really helpful. but i have one doubt like .. i have many classes in a Package, i want to run all the classes at once using testng.xml sequentially . its executing but in the random order, sometimes its executing first and last only. do i need to modify any more or need to do something. your guidance would be appreciated . Thank You :)
Hi Sailesh, kindly add then it will run in same order.
Thanks bud...Very helpful
Hi Tolu, I am glad it helped you.
Thank you, Mukesh!
+Artūras Mikaila Your most welcome Mikaila
thank u mukesh...................
thank you
welcome frnd..
Thanks it helped
+SHARAN GOWDA Sharan
Mukesh ...............thanks
Thanks a lot bro
5+