Getting UNknow host Exception

300 views
Skip to first unread message

sandy

unread,
Nov 6, 2020, 12:05:09 AM11/6/20
to Selenium Users
Running the testng  xml and getting unknown host exception.
at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:320) at org.testng.remote.AbstractRemoteTestNG.initialize(AbstractRemoteTestNG.java:137) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:98) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77) 

Caused by: java.net.UnknownHostException: testng.org


Can someone pls help  

Rishabh Prabhu Srivastava

unread,
Nov 8, 2020, 12:37:27 PM11/8/20
to Selenium Users
In your XML file, you might be including the DTD as <!DOCTYPE suite SYSTEM "http://TestNG.org/TestNG-1.0.dtd">

If that's the case, can you check if the URL is provided in "URL" and not &quot;URL&quot; 

If not, then can you please provide the code for reference.

Thanks & Regards
Rishabh Prabhu
Content Manager
Reply all
Reply to author
Forward
0 new messages