TestNG by default disables loading DTD from unsecure Urls

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

    Details Exception is as follows:- 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]

    To fix the Exception it needs to set the JVM arguments. To set the JVM arguments in Eclipse:

    1. Open Eclipse and go to Window -> Preferences
    2. Expand TestNG at left-hand side and click Run/Debug
    3. At right-hand side: Type the following text in the JVM args text field: -Dtestng.dtd.http=true
    4. Click Apply and Close button

提交回复
热议问题