TestNG by default disables loading DTD from unsecure Urls

后端 未结 14 881
[愿得一人]
[愿得一人] 2021-01-02 00:10

I\'m using testng maven and selenium to run my tests, currently I have the following testng.xml file

Looks like the problem is with the &listeners and &class

相关标签:
14条回答
  • 2021-01-02 00:50

    Change "http://testng.org/testng-1.0.dtd" to "https://testng.org/testng-1.0.dtd" in your suite file.

    0 讨论(0)
  • 2021-01-02 00:52

    Adding those VM options : -ea -Dtestng.dtd.http=true solved this problem.
    But if you want to solve it for each run either for any class or method, you need to add the same in TestNG template, please refer to this screenshot. Intelij TestNg Template SS

    0 讨论(0)
提交回复
热议问题