TestNG by default disables loading DTD from unsecure Urls

后端 未结 14 1073
[愿得一人]
[愿得一人] 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:39

    Yes, that's the default behavior of TestNG and I had introduced it through that pull request to fix the bug https://github.com/cbeust/testng/issues/2022

    To set the JVM arguments in intelliJ, choose Run > Edit Configurations, and add this JVM argument in the VM options section after -ea (which would be there by default.

    For more information on editing configurations, please refer to the official documentation here

    Added screenshot for easy to find in Intellij

    Argument value

    -ea -Dtestng.dtd.http=true

    If the above does not work do at template level, this will fix it, which is

    Run--> Edit configuration --> template --> testng
    

提交回复
热议问题