[英]Referenced file contains errors (http://testng.org/testng-1.0.dtd)
I have installed TestNG plugin in eclipse still I see the below error Referenced file contains errors ( http://testng.org/testng-1.0.dtd ).我已经在 Eclipse 中安装了 TestNG 插件,但仍然看到以下错误Referenced file contains errors ( http://testng.org/testng-1.0.dtd )。 For more information, right click on the message in the Problems View and select "Show Details..."有关更多信息,请右键单击问题视图中的消息并选择“显示详细信息...”
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="PVAI-Document">
<test name="document-module">
<packages>
<package name="com.genpact.pvai.document.*" />
</packages>
</test>
</suite>
I solved it by adding the secure flag in the URL as follows: "http s ://testng.org/testng-1.0.dtd"我通过在 URL 中添加安全标志来解决它,如下所示:“http s ://testng.org/testng-1.0.dtd”
Regards.问候。
The answer from @Nahuel is correct, it's fixed by changing the URL to https. @Nahuel 的答案是正确的,它通过将 URL 更改为 https 来修复。 But I think it worth mention that this is a problem of Eclipse not following redirect (302) responses (at least in this case)但我认为值得一提的是,这是 Eclipse 没有遵循重定向(302)响应的问题(至少在这种情况下)
As you can see below if I use postman to query the URL the server responds with a 302 redirect to the https version正如您在下面看到的,如果我使用邮递员来查询服务器响应的 URL 以 302 重定向到 https 版本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.