How To Manually Create testng xml file in TestNG

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 76

  • @Mukeshotwani
    @Mukeshotwani  9 років тому +3

    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.

    • @theimpatientsoul
      @theimpatientsoul 6 років тому

      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

    • @jayshreekant
      @jayshreekant 6 років тому

      Remove thread count buddy !

    • @jayshreekant
      @jayshreekant 6 років тому

      @mukesh, I thought this tutorial was about to create the XML file programatically, I confused with the title !

  • @ashfirebolt
    @ashfirebolt 8 років тому

    Mukesh!! You Rock!!! Keeping the content free is gonna make your videos popular. Thank you!

    • @Mukeshotwani
      @Mukeshotwani  8 років тому +1

      Hey, Avinash thanks :) so many videos in the pipeline will upload soon. Let me know if any help from my side.

  • @nagalathaks
    @nagalathaks 9 років тому +1

    This really helped. i was in search of creating the XML.. thanks a lot Mukesh... :)

    • @Mukeshotwani
      @Mukeshotwani  9 років тому

      +Nagalatha Ks Great Nagalatha.. Keep visiting :)

  • @rock51praveen
    @rock51praveen 8 років тому +2

    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

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Thank you so much Praveen :) keep sharing and let me know if any help from my side.

  • @bibhutib3564
    @bibhutib3564 4 роки тому +1

    Thank you Mukesh for this lecture on testng, it helped me a lot.

  • @mehulchauhan2698
    @mehulchauhan2698 7 років тому

    Hi Mukesh,
    It's really good and simple. Easy to understand..

  • @amitgautam6782
    @amitgautam6782 4 роки тому +1

    i am not getting this option testng suite while running only configuration option i can see

  • @shaiksameena7603
    @shaiksameena7603 6 років тому +1

    Hi Mukhesh,
    Testng is visible for xml files. Iam getting only xsl transformation. Could you please help me on this

  • @hiremathdarshan
    @hiremathdarshan 6 років тому

    I get run as XSL transformation not testngsuite , is it okay ?

  • @Nilesh773
    @Nilesh773 6 років тому

    Test Data store in XML file how we used XML fiel insted of excel file.?

  • @sreekanth5751
    @sreekanth5751 5 років тому

    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

  • @chandruj4868
    @chandruj4868 7 років тому +1

    Hi, Mukesh,
    Its really good and thanks a lot for your great work!

  • @saiquality7453
    @saiquality7453 3 роки тому +1

    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?

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому

      Hi Sai, you can use Invocation count or DataProvider for this.

    • @saiquality7453
      @saiquality7453 3 роки тому

      @@Mukeshotwani Isn't it Invocation count used at test method? I tried using at class level but it doesn't work.

  • @sidzalavadiya252
    @sidzalavadiya252 7 років тому

    Hi Mukesh, I am using TestNG with Android Studio can you please help me to get location of TestNG output files?

  • @nehatanna2692
    @nehatanna2692 7 років тому +1

    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?

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Click on Source tab to get the code.

  • @gauravkumar-km3qs
    @gauravkumar-km3qs 8 років тому

    hello mukesh ! when i try to run xml file (using testng) it shows Run configurations... what to do ?

  • @deepanjanpal5959
    @deepanjanpal5959 7 років тому

    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.

  • @yashwantbeeram8543
    @yashwantbeeram8543 6 років тому

    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

  • @rajashekarpolu122
    @rajashekarpolu122 8 років тому

    hi mukesh,
    I'm getting an error: No embedded stylesheet instruction for file: file:/D/workspace/selenium/ testsunte.xml
    please do needful.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Hi Raja, Kindly install testng plugin it will generate xml automatically learn-automation.com/how-to-install-testng-in-eclipse/

    • @rajashekarpolu122
      @rajashekarpolu122 8 років тому

      Mukesh otwani @Thank you for your kind response mukesh. But testng plugin is already installed in my system.

  • @RanjeetSingh-bm1nq
    @RanjeetSingh-bm1nq 7 років тому

    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.

  • @chinmayachittaranjanjena2575
    @chinmayachittaranjanjena2575 8 років тому

    Thanks Mukesh for shairing this video.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      +Chinmaya chittaranjan jena Thanks Chinmaya Happy weekend.

  • @vallimocherla7630
    @vallimocherla7630 7 років тому +1

    Thank you..I was able to understand very easily.

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      Thanks Vali :) I am glad you liked it.

  • @garimabhambhani545
    @garimabhambhani545 7 років тому

    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.

  • @BrandBabu1006
    @BrandBabu1006 9 років тому +1

    Thanks Mukesh sir..its very helpful

  • @harshchoubey9168
    @harshchoubey9168 4 роки тому +1

    Very Nice video Mukesh

  • @subhanagpoori9992
    @subhanagpoori9992 8 років тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      set the proxy and then try the same.

  • @TheRammohan1
    @TheRammohan1 8 років тому

    Hello Mukesh,
    Can you tell me how to send the Test Ng report to all team members after fisnishing the test through mail.

  • @abishekkachroo938
    @abishekkachroo938 7 років тому +1

    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

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      +abishek kachroo Hi Abhishek I have some more videos on TestNg have a look

  • @phaneendrapashikanti6461
    @phaneendrapashikanti6461 8 років тому

    mukesh how should i get "test-output" folder..?

    • @Mukeshotwani
      @Mukeshotwani  8 років тому +1

      Just refresh the folder you will get.

  • @deepakbagde6353
    @deepakbagde6353 7 років тому

    kya apne manual testing ke videos create kiye hai.

  • @sidharthbhatia6700
    @sidharthbhatia6700 7 років тому +1

    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!!!

    • @Mukeshotwani
      @Mukeshotwani  7 років тому

      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

    • @sidharthbhatia6700
      @sidharthbhatia6700 7 років тому

      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!!!

  • @MrJitendraparate
    @MrJitendraparate 8 років тому

    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.

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      +jitendra parate Ur most welcome.it will skip the rest if BeforeSuite failed..

  • @chennamyugasrinivaskumar1708
    @chennamyugasrinivaskumar1708 6 років тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  6 років тому

      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.

  • @shaileshk4115
    @shaileshk4115 8 років тому

    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 :)

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Hi Sailesh, kindly add then it will run in same order.

  • @toluabisogun5704
    @toluabisogun5704 8 років тому

    Thanks bud...Very helpful

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      Hi Tolu, I am glad it helped you.

  • @arturasmikaila4783
    @arturasmikaila4783 8 років тому

    Thank you, Mukesh!

    • @Mukeshotwani
      @Mukeshotwani  8 років тому

      +Artūras Mikaila Your most welcome Mikaila

  • @Sandarshantv
    @Sandarshantv 9 років тому

    thank u mukesh...................

  • @sharangowda5276
    @sharangowda5276 9 років тому +1

    Thanks it helped

  • @nagagsalka5371
    @nagagsalka5371 9 років тому

    Mukesh ...............thanks

  • @MaknunKhan
    @MaknunKhan 3 роки тому

    Thanks a lot bro

  • @ValeriiSynenko
    @ValeriiSynenko 7 років тому

    5+