TestNG by default disables loading DTD from unsecure Urls

后端 未结 14 1038
[愿得一人]
[愿得一人] 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条回答
  •  梦毁少年i
    2021-01-02 00:42

    1. If you run your project only from the eclipse/other IDE's update your TestNG preferences and add statement -Dtestng.dtd.http=true in JVM_args.
    2. If you are looking for a general fix where you run maven from CLI as well then update all your TestNG.xml files

    FROM

     
    

    TO:

    
    

    I personally prefer updating the DOCTYPE.

提交回复
热议问题