How To Solve- org.testng.TestNGException: TestNG by default disables loading DTD from unsecured Urls

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024
  • Many people are facing issue because of the TestNG version and its compatibility issues.
    Here is the error log looks like
    org.testng.TestNGException:
    TestNG by default disables loading DTD from unsecured Urls. If you need to explicitly load the DTD from a http url, please do so by using the JVM argument [-Dtestng.dtd.http=true]
    RUclips All Videos Playlist
    / mukeshotwani
    Connect with us:
    Linkedin- / mukesh-otwani-93631b99
    Instagram- / mukeshotwani
    Facebook Group- / 256655817858291
    Facebook Page- / seleniumwebdrivermukesh
    Twitter- / mukeshotwani
    Blog- learn-automatio...

Комментарии • 77

  • @shwetakatare24
    @shwetakatare24 3 года назад +3

    Very helpfull.....Thank you!!!

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      I am glad it helped Shweta 🙏 Thank you

  • @MuhammadJavaid313
    @MuhammadJavaid313 2 года назад +1

    Mukesh its very much help full, straight to the point unbelievable.

    • @Mukeshotwani
      @Mukeshotwani  2 года назад

      Thanks Javaid I am glad it helped you.

  • @mahmadroain
    @mahmadroain 3 года назад +1

    You are straight to the point!! thank you

  • @user-nc4wu6er8q
    @user-nc4wu6er8q 3 года назад +1

    You are champion!!! Thank you.

  • @denzel7089
    @denzel7089 2 года назад +1

    Thank you so much for this simple solution!

  • @jaganbabum3667
    @jaganbabum3667 Год назад +1

    Thanks Mukesh,this helped me a lot

  • @unnatidua4244
    @unnatidua4244 9 месяцев назад +1

    It worked for me, Thankyou!

  • @ManiKandan-jm6tw
    @ManiKandan-jm6tw Год назад +1

    Thank you, resolved my issue.

  • @paritashah2324
    @paritashah2324 2 года назад +1

    This was definitely helpful! Will try this!

  • @NoBroker-je3cd
    @NoBroker-je3cd Год назад +1

    Very Usefull. Thanks.

  • @dipalinarwate2456
    @dipalinarwate2456 2 года назад +1

    Thanks... I am able to resolve my problem...

    • @Mukeshotwani
      @Mukeshotwani  2 года назад +1

      Hi Dipali I am glad it helped 😊

  • @kumarrdy5420
    @kumarrdy5420 3 года назад +1

    Thanks Mukesh

  • @mohitgupta7145
    @mohitgupta7145 3 года назад +1

    Thanks a ton Mukesh..

  • @ananthvraj183
    @ananthvraj183 2 года назад +1

    It helped me thank you bru

    • @Mukeshotwani
      @Mukeshotwani  2 года назад +1

      I am glad it helped.Thanks Ananth

  • @chinmaykulkarni1008
    @chinmaykulkarni1008 Год назад +1

    Thanks for help..!! ❤️❤️

  • @khadarvali6491
    @khadarvali6491 5 месяцев назад +1

    Thanks so much bro

  • @vijaygurusamy4055
    @vijaygurusamy4055 3 года назад +1

    Thanks Mukesh. One new thing learnt today

  • @irenedagostino9203
    @irenedagostino9203 Год назад +1

    THANK YOU SOOOOOO MUCH xxx

  • @divyachahar2623
    @divyachahar2623 Год назад +1

    It did work..thankyou

  • @ahmedmujahid4652
    @ahmedmujahid4652 9 месяцев назад

    thanks very mush for nice Clarification

  • @shajahansk8542
    @shajahansk8542 Год назад +1

    Thank you sir ❤❤❤

  • @manimanjeera4470
    @manimanjeera4470 3 года назад +1

    Thank you so much!

  • @sumitbhaware6205
    @sumitbhaware6205 3 года назад +2

    Hi, Mukesh.
    I am still facing the same issue, I have tried to resolve it with diff options
    Option 1: Change the TestNG version in POM.xml
    Option 2: Set the [Dtestng.dtd.http=true] arg into JVM args in Preference>> TestNG>> Run/Debug.
    But facing the same issue, can we please provide any solution.
    Thanks

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Which version u are using of TestNG and Java?

    • @sumitbhaware6205
      @sumitbhaware6205 3 года назад

      @@Mukeshotwani,
      Hi, Mukesh.
      I am using testNg 7.3.0 version and 1.8.0 Java version.

    • @manjunathpatil4823
      @manjunathpatil4823 2 года назад

      @@sumitbhaware6205 use TestNG version: 6.14.3 for java version 1.8.0

  • @krupadv1784
    @krupadv1784 3 года назад +2

    Getting "org.testng.TestNGException:An error occurred while instantiating class" message when tried to run the program, actually this is an inconsistent error sir initially script was working, after several runs will get this error and if we try running the same script the next day it works fine, facing this from past two days using 7.3.0 testng version and plugin version is also 7.3.0 any suggestions for this

  • @sindhusudhakaran1731
    @sindhusudhakaran1731 3 года назад +1

    wow!! thank you

  • @Virajs2025
    @Virajs2025 2 месяца назад +1

    Thanks

  • @ranganathks2006
    @ranganathks2006 Год назад +1

    Thank you❤❤

  • @ankitakumari2756
    @ankitakumari2756 3 года назад +1

    Thank u so much

  • @monameshram1331
    @monameshram1331 Год назад +1

    how to resolve this in intellij

  • @shivagn
    @shivagn 2 года назад +1

    Hi Mukesh, I'm getting connection refused exception while trying to run TestNG. Can able to tell the solution to fix this issue

  • @priyadharshini1075
    @priyadharshini1075 Год назад +1

    Am getting cant find class in classpath exception.. I have clearly checked the package name and last name everything is fine can you help me to sort it out

    • @mallikarjunayadav6183
      @mallikarjunayadav6183 Год назад +1

      Hi Priya Have u solved this error.iam getting same this type of error 😢

    • @priyadharshini1075
      @priyadharshini1075 Год назад +1

      @@mallikarjunayadav6183 yes i ll tell you the solution

    • @user-fs4rp4dr3m
      @user-fs4rp4dr3m Год назад +1

      @@priyadharshini1075 i have faced same issue please tell me how to solve .

    • @Mukeshotwani
      @Mukeshotwani  Год назад

      This issue come mostly when project is not configured properly or corrupted. Please update the project to fix this issue.

  • @user-ny6bg7lp3l
    @user-ny6bg7lp3l 5 месяцев назад

    Hi mukesh,
    I tried but i m facing same issues can u plz help me to resolve this issue .

  • @sakshijoshi365
    @sakshijoshi365 2 года назад +1

    Error: Could not find or load main class org.testng.remote.RemoteTestNG how to fix this

  • @anilhavale1901
    @anilhavale1901 3 года назад +1

    How to resolve following issue?
    [RemoteTestNG] detected TestNG version 7.4.0
    org.testng.TestNGException:
    Cannot find class in classpath: com.crm.qa.test.LoginPageTest

    • @Mukeshotwani
      @Mukeshotwani  3 года назад

      Hi Anil, please try with maven project and if you are already using maven project then please create new project and try again.

  • @raghuvarun8348
    @raghuvarun8348 2 года назад +1

    Test ng results listening job .. What's the solution pls reply

    • @Mukeshotwani
      @Mukeshotwani  2 года назад

      Hi Varun, I did not get your question. Can you please explain little bit.

    • @raghuvarun8348
      @raghuvarun8348 2 года назад

      @@Mukeshotwani after running Testng report didn't showing console missing

  • @sheiksibgathulla1690
    @sheiksibgathulla1690 2 года назад +1

    Still iam getting this exception 😔

  • @alancoler4018
    @alancoler4018 2 года назад +1

    Sorry to piggy back but I'm getting another error with chrome driver. if anyone has a tip , please advise. [RemoteTestNG] detected TestNG version 7.4.0
    java.io.FileNotFoundException: /Users/acoler/Documents/GitHub/mmi-selenium-automation/-Dwebdriver.chrome.driver=/Users/acoler/Selenium/chromedriver (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method). My chromedriver is in that directory.

    • @Mukeshotwani
      @Mukeshotwani  2 года назад

      Hi Alan use WDM to fix this issue ruclips.net/video/Pb8gsLeSOFo/видео.html

    • @alancoler4018
      @alancoler4018 2 года назад

      @@Mukeshotwani thanks but I don't need that I was able to get chromedriver to work by putting it in my project dir, but all the arguments are also not found because it's putting the project path in front of them. I don't know why Eclipse is doing this.

  • @keshavrawal2746
    @keshavrawal2746 2 года назад +2

    [RemoteTestNG] detected TestNG version 7.4.0
    org.testng.TestNGException:
    Cannot find class in classpath: ParallelTesting.p1
    PLEASE help me for solving this issue

    • @Mukeshotwani
      @Mukeshotwani  Год назад

      Latest version should fix this issue.