When trying to run a test via .xml then getting error "TestNG by default disables loading DTD from unsecured Urls" ,How to fix it

When trying to run a test via .xml then getting error “TestNG by default disables loading DTD from unsecured Urls” ,How to fix it. Error Details- TestNG by default disables loading DTD from unsecured Urls. If you need to explicitly load the DTD from a http url.

You can use the url from “http” to “https” in the .xml file for example:- “”!DOCTYPE suite SYSTEM https://testng.org/testng-1.0.dtd""

1 Like

Thanks, Now working.