I am getting the error below while executing the Java testNG.xml file in Eclipse:
[TestNGContentHandler] [WARN] It is strongly recommended to add "<!DOCTYPE suite SYSTEM "
http://testng.org/testng-1.0.dtd" >" at the top of your file, otherwise TestNG may fail 
or not work as expected.
Can anyone help with this?
I have upgraded my testNG version in POM.xml from 6.14.3 to
<dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>7.1.0</version>
    <scope>test</scope>
</dependency>
Changing version solved this error.
i have downgrade my testng-6.14.3 from testng 7.x.x now its working fine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With