TestNG XML DTD错误
使用TestNG测试用例时碰到了这个问题:
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]
出现问题的根本原因是TestNG版本过高导致的,最新的TestNG版本是7.3.0,更换为7.0.0版本之后后问题解决
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.0.0</version>
<scope>test</scope>
</dependency>