运行testng.xml文件报错信息:
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]
解决办法:
注释掉这句话:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
本文介绍了运行testng.xml文件时遇到的DTD加载错误,并提供了解决方案,即通过注释掉DTD声明或使用特定的JVM参数来解决此问题。
2432





