TestNG by default disables loading DTD from unsecure Urls

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

    1. Right Click on the class, select Run--> Run configuration
    2. By default one testNg class will be generated with same class name under testng option
    3. Select that class and go to Arguments tab
    4. In the VM arguments provide -Dtestng.dtd.http=true

    Thats it.

提交回复
热议问题